Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 7406d8b

Browse files
authored
Add my js file
1 parent 2c566c5 commit 7406d8b

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

index.js

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
2+
//my homework
3+
4+
let salute = {english:'Hello', Amaric:'Salam', arabic: 'Marhabaan', turkish:'Marhaba', greek:'Yia-sas'};
5+
console.log(salute);
6+
7+
8+
9+
10+
console.log("I'm awesome");
11+
12+
13+
14+
15+
let x;
16+
console.log('variable x will be: undifined');
17+
console.log(x);
18+
x = 200;
19+
console.log('variable x will be: 200');
20+
console.log(x);
21+
22+
23+
24+
let y = "winny";
25+
console.log('the string will be: winny');
26+
console.log(y);
27+
28+
29+
30+
let z = 7.25;
31+
console.log(z);
32+
33+
let a = z.toFixed(0);
34+
console.log(a)
35+
let h = a<z;
36+
if (a>z){
37+
console.log(a)
38+
}
39+
else {
40+
console.log(z)
41+
}
42+
43+
44+
45+
let makeup = [];
46+
console.log('squre brackets')
47+
console.log(makeup)
48+
let animals = ['monkey', 'giraffe', 'lion', 'peacock']
49+
console.log(animals)
50+
animals.push('big pig')
51+
console.log(animals)
52+
53+
54+
55+
var string = "this is a test";
56+
console.log(string)
57+
console.log(string.length);
58+
59+
60+
let num1 = 45;
61+
let fruit = "love";
62+
const num2 = null;
63+
let ask = false;
64+
console.log(num1);
65+
console.log(fruit);
66+
console.log(num2);
67+
console.log(ask);
68+
console.log("types = Number String Null Boolean");
69+
console.log(typeof num1);
70+
console.log(typeof fruit);
71+
console.log(typeof num2);
72+
console.log(typeof ask);
73+
if (num1 === fruit) {
74+
console.log('Same Type')
75+
}
76+
else{
77+
console.log('not same type')
78+
}
79+
80+
81+
var d = 7 % 3;
82+
console.log(d);
83+
console.log('% is reminder')
84+
console.log('% = 1')
85+
86+
87+
88+
let mixed = ["solomon", "winslet", 45, "Ethiopia", 444 ];
89+
console.log(mixed);
90+
91+
const number1 = 6/0;
92+
const number2 = 10/0;
93+
if (number1 === number2){
94+
console.log("same number")
95+
}
96+
else{
97+
console.log("Not the same number")
98+
}

0 commit comments

Comments
 (0)