Challenge 3: Fix the Code

The following code invokes a function called 'add' that adds two numbers together. When you run this code, it should add 13 to 27, and output '40' to the console.

But this code is broken! Using your newfound JavaScript knowledge, find the bugs and fix it.

var first number = 13;
var second number = 27;

function 'add' () {
  return x + y;
}

add(first number, second number);

Last updated