1. What is variable?

answer:

A variable is something where you store your Data, use it as needed, update and chang it whenever you want.

ex: Var friendsName = "hazara";
console.log(friendsName);

2.How to variable?

ex:var friendsName = "TOTOL";
console.log(friendsName);

3.What is string variable and how to write?

Answer:

To write it, a variable must be declared than must be written inside the single quotation or double quotation caret sign in the value place.

ex:var strType = "totol programmer";
console.log(strType);

4.What is numType variable and how to write?

Answer

We have declare a variable, the value we give inside this variable must be Number(123..) but word cannot be given and no quotation can be used in the Number.

Ex:var num1 = 60;
var num2 = 70;
console.log(num1+num2);

5.What is boolean type variable and how to write?

Answer:

The answer of this variable must be either true or false.

Ex: var boolType = true;
console.log(boolType);

6.How to use to toUpperCase() and to LowerCase()?

Answer:

ToUpperCaes is uesd to make all text in the file uppercaes.

ToLowerCase is uesd to make all text in the file lowercaes.

7.What are the types of javascript operators and what are they?

Answer:

Five types of javascript:
.Arithmetic
.Logical
.Ternary
.Assignment
.Comparsion

8.How to use to Math.abs?

Answer:

Math.abs is used to convert any negative variable to Positive.

Ex:var num1 = -30;
var sum = Math.abs(num1)
console.log(sum)

9. How to use to Math.ceil?

Answer:

Ex: var voter = 4.1233;
var sum =Math.ceil(voter);
console.log(sum)

10.How to use to Math.floor?

Answer:

Its function is to smaller whatever large number is after the decimal point.

Ex: var voter = 1.9999;
var sum = Math.floor(voter)
console.log(sum)

11.How to use to Math.random?

Answer:

Its value ranges from 0 to 1. Its results come different at different times.