Skip to content

Commit 411eeba

Browse files
authoredOct 28, 2024
Create Basic Operators.js
learning practice of Java script
1 parent ae86909 commit 411eeba

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
 

‎Basic Operators.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const now =2037;
2+
const ageRejwar = 2024-2001;
3+
const ageSarah = 2025-2001;
4+
5+
console.log(ageRejwar,ageSarah);
6+
console.log(ageRejwar*2 ,ageRejwar/2);
7+
8+
const firstName='Md. Rejwar';
9+
const lastName=' Rifat';
10+
11+
console.log(firstName + ' '+lastName);
12+
13+
let x = 110 + 5;
14+
x+=10;
15+
x*=3;
16+
x++;
17+
x--;
18+
console.log(x);
19+
20+
//comparison operator:
21+
22+
console.log(ageRejwar>ageSarah);
23+
console.log(ageSarah>=18);
24+
25+
const isFullAge=Sarah>=18;
26+
console.log(isFullAge);

0 commit comments

Comments
 (0)
Please sign in to comment.