example.html
►
Run
Reset
<!doctype html> <html> <body> <h1>JavaScript - SyntaxError: Invalid shorthand property initializer</h1> <script> var msg = ""; var mango = [type:"fruit", native:"India"]; console.log(mango.type); </script> </body> </html>