Console log – 1

/**
 * Let's say we have an array that we want to debug 
 */

const arr = [1, 2, 3, "webinuse", "Twitter", "test", 4, 5];



/**
 * If we just console.log the array, console will output array  
 */
 
console.log(arr)
//Output: (8) [1, 2, 3, "webinuse", "Twitter", "test", 4, 5]



/**
 * We can also have message that goes with that console.log
 */

console.log("This is our array", arr)
//Output: This is our array (8) [1, 2, 3, "webinuse", "Twitter", "test", 4, 5]


/**
 * If we put array in the first place, 
 * and message in second, than our message will 
 * not be treated as message but as String
 */
 
 console.log(arr, "This is our array");
 //Output: (8) [1, 2, 3, "webinuse", "Twitter", "test", 4, 5] "This is our array"