Jump to content

Kruk87

Members
  • Posts

    2
  • Joined

  • Last visited

Kruk87's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Lol, feel silly now that I didn't examine this close enough ( even if I am a total beginner in JS ). Thanks for the answer though.
  2. I have a short code: <!DOCTYPE html><html><body><p id="demo"></p><script>var fruits = [];document.getElementById("demo").innerHTML = isArray(fruits);function isArray(myArray) { return myArray.constructor.toString().indexOf("Array");}</script></body></html> Can someone explain to me why this function returns 9 ?
×
×
  • Create New...