Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Console Object</h1>
<h2>The assert() Method</h2>
<p>Remember to open the console (Press F12) before you click "Run".</p>
<p>How to display an array in the console.</p>
<script>
let x = 5;
let y = 5;
const myArr = ["Orange", "Banana", "Mango", "Kiwi"];
console.assert(x + y == 11, myArr);
</script>
</body>
</html>