Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript String Objects

const a = 'hello';
const b = new String('hello');

console.log(a); // "hello"
console.log(b); // "hello"

console.log(typeof a); // "string"
console.log(typeof b); // "object"
 
PREVIOUS NEXT
Tagged: #JavaScript #String #Objects
ADD COMMENT
Topic
Name
1+4 =