-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp.js
More file actions
77 lines (51 loc) · 855 Bytes
/
temp.js
File metadata and controls
77 lines (51 loc) · 855 Bytes
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
//I'm consoling my name
console.log('Hello its JS');
console.log('Hello from app.js');
// single line comment
/*
Mul lines of comments
*/
/*
Var in js
var theName = 'Sohaib';
*/
/*
Datatybes
1. String --> text inside ' ' or " "
what I write I see
2. Number
- int
- float ... etc.
2. Number
- int
- float ... etc.
3. Boolean
- true
- false
4. arithmatic operators
+ add
- sub
* mul
/ devide
% mod
** power
*/
//String
console.log('Hello from app.js');
//numbers
console.log(1);
console.log(1+3+8);
//Boolean
console.log(true);
console.log(false);
// add
console.log('adding', 1+3+8);
//sub
console.log('sub', 1+3+8);
//mul
console.log('sub', 1*3*8);
//power to
console.log('2^2 =',2 ** 2);
// concatianation I will use it to add 2 strings together using
console.log('hello'+' '+'Sohaib');
//console.log('Bara\'ah');