Answer the question
In order to leave comments, you need to log in
JSLint good or bad!???
In general, I don’t know what to do ... here and so you are trying to write code ... so it also gives you errors during validation ...
in short, here is a code example ...
function say(){
return function (name){
return greet + " " + name;
};
}
var greet = 'Hello';
var en = say();
console.log(say("John"));
console.log(say("Martin"));
Answer the question
In order to leave comments, you need to log in
And what is there to explain?) look at the code, there is svg, which changes its path when hovering over
Do not write kaku and everything will be ok, in the same place in the output it is written what is wrong. And this is not a "fucking validator", but a VERY effective system for straightening crooked arms.
Well, you have everything written as it should:
/*global console*/
var greet = 'Hello';
function say() {
"use strict";
return function (name) {
return greet + " " + name;
};
}
var en = say();
console.log(say("John"));
console.log(say("Martin"));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question