React Visualized

Join the React Bootcamp

The React Bootcamp is 5 full weeks of professional React training to take you from wherever you are to top-tier React programmer in record time.

Lifetime Access

$79
Complete Package
Become a React Pro

Transcript

This JavaScript function is broken. So what will happen if you try to use it?

function sum() {
  return a + b;
}

If you call this function, you’re going to get a reference error which says, "a is not defined".

And this makes sense, the sum function is using two values, a and b,...