Zusammenfassung der Ressource
Frage 1
Frage
Which of the following is not a JavaScript primitive data type?
Antworten
-
Boolean
-
String
-
Decimal
-
Number
Frage 2
Frage
Given the string 'Hello world!', how would you find out how many characters are in the string?
Antworten
-
'Hello world!'.length
-
'Hello world!'.len
-
'Hello world!'.long
-
length('Hello world!')
Frage 3
Frage
Given the string 'Hello world!', which index is the letter 'e' found at?
Frage 4
Frage
What does the special character` \n` do?
Antworten
-
Creates a new line in the string.
-
Makes it so our output skips the letter n.
-
Allows us to include quotes inside a string.
Frage 5
Frage
Which of the following are valid operators in JavaScript?