Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 527 Bytes

challenge03.md

File metadata and controls

18 lines (12 loc) · 527 Bytes

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);