-
Notifications
You must be signed in to change notification settings - Fork 0
/
class3.js
39 lines (38 loc) · 885 Bytes
/
class3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
let fullName = "Maham latif";
console.log(fullName);
//its called singal line comment
console.log(fullName);
console.log(fullName);
console.log(fullName);
//Multi line comment /* ye paraghrap ko comment krny keliya hota ha oe iska opening or closing tag dono ha *\
/* maham
25
umar
26
software Engineer*/
//Add
var Num2 = 3;
var Num3 = 4;
var total = Num2 + Num3;
console.log(total);
//sub
var subtraction = 2;
console.log(total - subtraction);
//multiply
var multiplyAnswer = 5 * 9;
console.log(multiplyAnswer);
// division
var totalapples = 20;
//let bag:number=4;
//let eachBag :number = totalapples / bag;
//console.log(eachBag)
//EXPONENTATION[**] Is use for 2*2*3*4*4*multiplication
var apples = 5;
var people = 5;
var power = Math.pow(apples, 3);
console.log(power);
//MODULUS %
var fruits = 7;
var basket = 3;
var reminder = fruits % basket;
console.log(reminder);