javascript run method when console.log code example
Example 1: javascript log to console
console.log('message1' + ' - ' + 'message2')
Example 2: console log javascript
console.log("hello", value);
Example 3: js call and apply
func.call([thisArg[, arg1, arg2, ...argN]])