Computer Science, asked by divyeshrajpurohit11, 5 months ago

D. Answer the following questions.
1. What is JavaScript? Why is it important?
2. Discuss object model in JavaScript.
3. How can you use HTML tags in JavaScript?
4. How do you declare variables in JavaScript?
5. Discuss various types of operators in JavaScript.​

Answers

Answered by niveditabanerjee486
2

Answer:

1.JavaScript is a programming language used primarily by Web browsers to create a dynamic and interactive experience for the user. Most of the functions and applications that make the Internet indispensable to modern life are coded in some form of Java script.

2.JavaScript is an object-based language based on prototypes, rather than being class-based. Because of this different basis, it can be less apparent how JavaScript allows you to create hierarchies of objects and to have inheritance of properties and their values.

3.The best way to include HTML in JavaScript is to write the HTML code on the page. The browser can't display HTML tags, so the browser will recognize the HTML and write this code in HTML.

4.Creating a variable in JavaScript is called "declaring" a variable. You declare a JavaScript variable with the var keyword: var carName; After the declaration, the variable has no value (technically it has the value of undefined ).

5.Arithmetic operators are used to perform arithmetic operations on the operands. The following operators are known as JavaScript arithmetic operators.

...

JavaScript Arithmetic Operators.

OperatorDescriptionExample-Subtraction20-10 = 10*Multiplication10*20 = 200/Division20/10 = 2%Modulus (Remainder)20%10 = 0

Answered by singhsonali718
0

Answer:

1- java script is a programming language used primarly by web browser to create dinaminc and interactive experience for the user .Most of the function and application the internet indispencible to the modern life are coded in the some form of javascript

Similar questions