Core JavaScript contains a core set of objects, such as Array, Date, and Math, and a core set of language elements such as operators, control structures, and statements. Client-side JavaScript extends the core language by supplying objects to control a browser and its Document Object Model (DOM). Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a server.
JavaScript and Java are entirely different thing. JavaScript can control browser behavior and content. But can not draw graphics or networking or multithreading like Java.
JavaScript Can:
- Control Document appearance and content.
- Control over all behavior of the browser.
- Interact with HTML Forms.
- Interact with the user.
- Read and write client state with cookies.
- Can change the image displayed by IMG tag.
- Interact with objects embedded in the browser.
- Can perform arbitrary computation.
- Allows a block of arbitrary JavaScript code to be executed in a preset interval of time.

