HI here is a goo explanation https://www.w3schools.com/js/js_strings.asp
2017 Dec 15, 5:18:56 PM
@Vadim_Klimets Should be right. Check again please. this code: <pre><code>var s = new String('text'); s</code></pre>
2017 May 18, 12:34:11 AM
Thanks for a question. Actually, all next statements: var s = new String(text); var s = text; var s = {text}; will fail with following error: [Uncaught ReferenceError: text is not defined] and var s = "t"."ext"; will fail with [Uncaught SyntaxError: Unexpected string]
2015 Oct 8, 9:17:18 PM
There is a glitch with this question. The first option should work, and doesn't according to the results.
2015 Oct 7, 3:42:28 AM
Login in to like
Login in to comment