display data in a tabular format using console object in JavaScript

JavaScript

🤖 Code Explanation

This code defines a console object with a log function. The log function adds a message to the HTML element with id="console". The displayData function loops through an array of data and prints each element in the array to the console.

Download SpellBox today