Declare a variables


#1

can any one help me out that what i am doing wrong

var text = "i am a khush/
khush loves to cook food";
var myName = "khush";
var hits = [];
it showing me this error

SyntaxError: Invalid or unexpected token


#2

var text = "i am a khush/
khush loves to cook food";

should be in one line
or use backslash(\ ) instead of forward slash(/)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.