String(null) returns – “null”
String(undefined) returns – “undefined”
String(10) returns – “10”
String(1.3) returns – “1.3”
String(true) returns – “true”
I think this is a more elegent way.
String(null) returns – “null”
String(undefined) returns – “undefined”
String(10) returns – “10”
String(1.3) returns – “1.3”
String(true) returns – “true”
I think this is a more elegent way.