HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <script> var num = new Number(36); var str = new String("hello"); var bool = new Boolean(true); var arr = [1, 2, 3]; var obj = {bike:"honda", color:"red"}; var txt = ""; txt += "num : "+ (num instanceof Number) + "<br>"; txt += "str : "+ (str instanceof String) + "<br>"; txt += "bool : "+ (bool instanceof Boolean) + "<br>"; txt += "arr : "+ (arr instanceof Array) + "<br>"; txt += "obj : "+ (obj instanceof Object) + "<br>"; document.write(txt); </script> </body> </html>
OUTPUT
×

Save as Private