Answer the question
In order to leave comments, you need to log in
What is the problem with the second variable?
Here are two variables:
var greeting = function (name) {
console.log("Great to see you," + " " + name);
};
greeting("Alex");
var someName = function (name) {
console.log("Hello," + " " + someName + "!");
};
someName("Alex");
Answer the question
In order to leave comments, you need to log in
It looks like your screenshot is not blurring, but just a white block with about 70% transparency on top of the content.
Well, you are trying to print a function, so it worked someName.toString()
. As I understand it, you just need to put name in the second case too:
var greeting = function (name) {
console.log("Great to see you, "+ name);
};
greeting("Alex");
var someName = function (name) {
console.log("Hello, " +name + "!");
};
someName("Alex");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question