Lesson 5..Tying it all together ( stuck )


#1

Cant figure this one out...anyone have a tip as to whats wrong?

// Nicely written function:
var calculate = function (number) {
var val = number * 10;
console.log(val);
};

// Badly written function with syntax errors!

var greeting =function("name"){
console.log("hey how are you this day");}
greeting("ralph");


#2

remove the quoatation marks from the argument.

Have a look at this:

https://www.codecademy.com/forum_questions/5311e8c480ff33d67900227d


#3

no quotes around name. also, semicolon after bracket


#4

Well, If your're stuck...
// Nicely written function:
var calculate = function (number) {
var val = number * 10;
console.log(val);
};

// Badly written function with syntax errors!

var greeting = function(name) {console.log("Nice to meet you,"+" "+name)}
greeting (" Your Name")


#5

Thanks!!!!! quotation marks resolved the issue!!