HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

What is JavaScript

  • Programming Language: JavaScript is a high-level, interpreted scripting language primarily used for web development.

  • Client-Side Scripting: Runs in the browser, allowing dynamic content updates, interactive forms, animations, etc.

  • Server-Side Usage: Can be used on the server-side with environments like Node.js.

  • Object-Oriented: Supports object-oriented programming, allowing the creation of reusable objects.

  • Event-Driven: Responds to user interactions, such as clicks, key presses, or mouse movements.

  • It is commonly used to create interactive effects within web browsers.

Example

My First JavaScript

<button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display Date and Time.</button> <p id="demo"></p>
You can click on above box to edit the code and run again.

Output

My First JavaScript