Skip to content

Latest commit

 

History

History
executable file
·
9 lines (7 loc) · 705 Bytes

File metadata and controls

executable file
·
9 lines (7 loc) · 705 Bytes

Which of the following statement uses string escape correctly?<<

( ) var str = "\"Hello""; {{Incorrect because this statement does not use the backslash escape sequence for the closing quotation mark.}} ( ) var str = "/"Hello/""; {{Incorrect because this statement does not use the backslash escape sequence.}} ( ) var str = " "Hello" "; {{Incorrect because this statement does not use the backslash escape sequence.}} ( ) var str = "Hello"; {{Incorrect because this statement does not use escape sequences.}} (x) var str = "\"Hello\""; {{Correct because this statement uses backslash to escape the quotation marks.}}

||A backslash is used when escaping characters such as quotation marks.||