Difficulty: Easy
Correct Answer: Core language objects such as Object, Array, String, Date, Math, and browser objects such as window, document, location, navigator, and history.
Explanation:
Introduction / Context:
JavaScript provides many built in objects that form the foundation for working with data, time, and the browser environment. Understanding the main categories of these objects helps developers quickly recognize what tools are available for common tasks such as list manipulation, string operations, dates, and interaction with the web page and browser.
Given Data / Assumptions:
Concept / Approach:
The JavaScript language itself defines core objects such as Object, Array, Function, String, Number, Boolean, Date, RegExp, and Math. These provide the basic data structures and utilities needed in any JavaScript program. When running in a browser, JavaScript code also interacts with host objects supplied by the environment, including window (the global object for the browser window), document (the DOM tree representing the page), location (the current URL), navigator (information about the browser), and history (the session history stack). Together, these objects form the main toolkit used in client side web programming.
Step-by-Step Solution:
Verification / Alternative check:
Opening the browser console and typing Object, Array, window, and document shows that these names refer to built in constructors or objects. Documentation on MDN and other references lists these same objects under JavaScript standard built ins and Web APIs, confirming they are the main objects used in practice.
Why Other Options Are Wrong:
Common Pitfalls:
Beginners sometimes think only DOM elements matter in JavaScript and overlook powerful core objects like Array and Date. Another pitfall is assuming that anything available in a server side language is also directly available in JavaScript, which is not true; browser security and sandboxing restrict access to hardware and local resources.
Final Answer:
The correct choice is Core language objects such as Object, Array, String, Date, Math, and browser objects such as window, document, location, navigator, and history. because this option accurately describes the main categories of objects commonly used in JavaScript web development.
Discussion & Comments