QP School

Full Version: JavaScript array constructor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
const fruits =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

let text = fruits.constructor;

document.write(text);