Javascript console.log() Method display array

Introduction

Write an Array to the console:

Press F12 on your keyboard to view the message in the console view.

View in separate window

<!DOCTYPE html>
<html>
<body>
<script>
var myArr = ["Orange", "Banana", "CSS", "HTML" ];
console.log(myArr);
</script>//  w  w w. j  a  va  2  s .c o m

</body>
</html>



PreviousNext

Related