DEV Community

Robert Mion
Robert Mion

Posted on

Learn JavaScript the fun way: by fixing one-line functions!

Here's an easy example

Change one thing to fix it. Answer is at the bottom of this post.

function sum(a, b) {
  return a  b;
}
Enter fullscreen mode Exit fullscreen mode

There's 100s more of these!

  • Easy, normal and hard difficulties
  • Fix JavaScript, HTML and CSS
  • You're guaranteed to learn new syntax, concepts, selectors and elements

Play 'Fix a function!' today and make it a daily habit

Answer: return a + b;

Top comments (2)

Collapse
 
ethenhunt12 profile image
Ethen hunt

This is just awesome. Very nice for those who knows basics.

Collapse
 
_afroprogrammer profile image
The Afroprogrammer

nice work I am beginner javascript developer.. this exercises has helped me very much