JavaScript(Task1)
JavaScript(Task1)
Date: 14_feb_2025
Task 1.
1: what is JavaScript?
• console.log("Hello, World!)!
• When this code is executed, the string "Hello, World!"
will be printed to the console.
Example
4: write a javaScript script to print "Hello,
JavaScript!" in the console.
5: what is an alert box in
JavaScript?
• An alert box is a built-in JavaScript function
(alert()) that displays a message in a pop-up
dialog box. It is commonly used for simple
notifications or warnings.
• Example:
• alert("This is an alert box!");
Example:
7: Name some popular JavaScript
frameworks and their uses.
• React:
• Widely used for building fast, responsive user interfaces with a virtual DOM, ideal for
creating scalable and maintainable web applications.
• Angular (by Google):
• An open-source framework for creating dynamic single-page applications, known for
its structured approach and robust features.
• Vue.js:
• A versatile framework for building cross-platform apps and websites, praised for its
user-friendly interface and ease of learning.
• Ember.js:
• A framework for building enterprise-level web applications with a strong emphasis on
structure and maintainability, featuring two-way data binding.
• Node.js:
• Primarily used for backend development, enabling the creation of real-time
.
8. What is the MERN stack?
• The MERN stack is a collection of technologies used
for full-stack web development. It consists of:
• MongoDB – A NoSQL database used for storing
application data.
• Express.js – A backend web framework for Node.js.
• React.js – A frontend library for building user
interfaces.
• Node.js – A JavaScript runtime for executing server-
side code.
• The MERN stack is popular for building modern
9: campare JavaScript
and PHP
The end