Challenge: Instance of Array?
This tricky challenge will test your understanding of the "instanceof" operator, arrays, and objects in JavaScript.
We'll cover the following...
We'll cover the following...
Problem statement #
Take a look at the code below:
Javascript (babel-node)
function check(){var tempFunc = function () {}return new tempFunc instanceof Array;}console.log(check())
The check function contains the definition of tempFunc (line 2).
On ...