-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOperations.html
More file actions
91 lines (80 loc) · 1.73 KB
/
Copy pathOperations.html
File metadata and controls
91 lines (80 loc) · 1.73 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Operations & Details | JavaScript | Al- Arafat </title>
</head>
<body>
<H1> Assalamualaikum Or-Rohmatullah </H1>
<H2> Al - Arafat </H2>
</body>
<script src="Operations.js"></script>
<script src="test-3.js"></script>
<script>
// Type-1:
/*
Operation:
*/
/*
let value=3
let negValue =-value
// console.log(negValue);
*/
/*
Normal Type Operation:
console.log(2+2);
console.log(2-2);
console.log(2*2);
console.log(2**2);
console.log(2**3);
"**" ==> power
console.log(2/2);
console.log(2%2); //But it's important...
*/
/*
let str1 ="Hello"
let str2 =" Arafat"
let str3 = str1 + str2
console.log(str3);
*/
/*
Complex Situation :
console.log("1"+2);
console.log(1+"2");
console.log("1"+2+2);
console.log(1+"2"+3);
console.log(1+2+"3");
console.log(2+3*4/5%6);
==>((((2+3)*4)/5)%6)
console.log(true);
==>true
console.log(+true);
==>1
console.log(true+);
==>Error
console.log(+ "");
//==>"+"=1;=""=>0
*/
/*
Lame Type Code:
let num1,num2,num3
num1=num2=num3=2+2
*/
/*
let gameCounter=100
// ++gameCounter;
gameCounter++;
console.log(gameCounter);
Output : same.
>=> ++gameCounter / gameCounter++ =>101{Output}
*/
/*
If you want to learn more about in "Prefix-Postfix",get the search ==> Prefix-Postfix :
link:
1. ECMA:https://tc39.es/ecma262/2023/#sec-notational-conventions
2.MDN:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Increment
3.W3school:https://www.w3schools.com/java/java_operators.asp
*/
</script>
</html>