Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript String() Function

const a = 225; // number
const b = true; // boolean

//converting to string
const result1 = String(a);
const result2 = String(b);

console.log(result1); // "225"
console.log(result2); // "true"
Source by bohubrihi.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Function
ADD COMMENT
Topic
Name
1+4 =