Javascript examples for Language Basics:console
Parameter format in console log
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=function(){/*from w w w . ja va2s . c o m*/ var arrayOne = [0,1,2], arrayTwo = [3,4,5]; delete arrayOne[1]; console.log("after delete: ", arrayOne.length); arrayTwo.splice(1, 1); console.log("array contents after splice(1,1): %o, with length: ", arrayTwo, arrayTwo.length); } </script> </head> <body> </body> </html>