Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript all type of data

let a = ["A", 1, true, [], [2, 'x'],{},{a:'B'}, NaN, undefined, null];
let s = a.toString();
console.log(s);//"A,1,true,,2,x,[object Object],[object Object],NaN,, "
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #javascript #type #data
ADD COMMENT
Topic
Name
8+2 =