以下关于字符串变量的声明不正确的是?
A: var myText = "my name is zhangsan";
B: var myText = 'my name is zhangsan';
C: var myText = 'my name is zhangsan";
D: var myText = "my name is\t zhangsan";
A: var myText = "my name is zhangsan";
B: var myText = 'my name is zhangsan';
C: var myText = 'my name is zhangsan";
D: var myText = "my name is\t zhangsan";
举一反三
- 下面哪一个字符串变量定义语句是不正确的? A: var mytext = "Here is some text!" B: var mytext = 'Here is some text!' C: var mytext = 'Here is some text!" D: var mytext = "Here is\nsome text!"
- 下面四个变量声明语句,哪一个变量的命名是正确的? A: var true B: var my_name C: var my name D: var 2cat
- 声明一个对象,给它加上name属性和show方法显示其name值,以下代码中正确的是() A: varobj=[name:"zhangsan",show:function(){alert(name);}]; B: varobj=,name:"zhangsan",show:”alert(this.name)”-; C: varobj={name:"zhangsan",show:function(){alert(name);}}; D: varobj={name:"zhangsan",show:function(){alert(this.name);}};
- 你想在根目录下查找一个名zhangsan的文件时,你使用下面的哪个命令? A: find / -name zhangsan B: find / zhangsan C: find zhangsan -name / D: find where name zhangsan
- 以下语句是正确的变量声明语句的是()。 A: var name = "张三" ; B: var null = 123 ; C: var name = "张三",age = 18 ; D: var name , age ;