var str="hello"; var str1 = new String("hello"); alert(str.equals(str1));的值是()
举一反三
- 11字符串测试1:下列字符串定义正确的是: A: String str="Hello World!"; B: Str str="Hello World!"; C: var str="Hello World!"; D: var str='Hello World!';
- 考察以下程序片段: var str = “32px”; var str1 = str.slice(-2); alert(str); alert(str1); 以下选项正确的是
- 下面代码的运行结果是( )。var str= "hello world" ;var str1=str.toUpperCase();var str2=str.toLowerCase() ;alert (str1) ;alert (str2) ; A: "HELLO WORLD","HELLO WORLD" B: "HELLO WORLD","hello world" C: "hello worl","HELLO WORLD" D: "hello world","hello world"
- 考察以下程序片段: var str = “32px”; var str1 = str.slice(-2); alert(str);
- 下列关于字符串使用正确的是() A: char str[10]; str="Hello"; B: char *str; strcpy(str,"Hello"); C: char *str1,str[10]="Hello"; strcpy(str,str1); D: char *str; str="Hello";