Number Guesser Javascript

Hi! I am taking the Fullstack course and got stuck on the Number Guesser challenge.

I know my code isn’t finished yet but could anyone please give me advice on how to continue? I believe a have some errors and I don’t know how to continue.

Thanks!!!

Hello, @mariooscar

You’ll need to decide which type of function syntax you want to use. Your current functions are a mismatched conglomeration. You may want to review functions, but here are some examples:

// Function Declaration function addAB1(a, b) { return a + b; } // Function Expression const addAB2 = function(a, b) { return a + b; } // Arrow Function const addAB3 = (a, b) => { return a + b; } // Concise Body Arrow Function const addAB4 = (a, b) => a + b; console.log(addAB1(5, 7)); console.log(addAB2(5, 7)); console.log(addAB3(5, 7)); console.log(addAB4(5, 7));
1 Like

Nice thank you! I will surely review them and get back asap!