I have a problem using quotation marks in js... I have an input field using this js-function
function validate(xyz) {
"+umum+" == "yeah_it_is_ok";
if(xyz == ""+umum+"") {
alert("Hoera!");
return true;
} else {
alert("Too bad!");
return false;
}
}
What do I have to insert in the input-field to get the Hoera message?$
In other words, what is the function of a " or a + in js?
""+umum+"", andvar umum = "foo"followed by""+umum+"", and things like that. Use it to get interactive feedback on what it does. Experiment.