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

Commit 6677daf

Browse files
committed
added home work folder with exerises files
1 parent 07fa3a8 commit 6677daf

8 files changed

Lines changed: 50 additions & 0 deletions

Week1/homework/ex1-hello-world.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
console.log('Hello, World!'); //English
4+
console.log('Selam, Dünya'); //Turkish
5+
console.log('مرحبا بالعالم'); //Arabic
6+
console.log('Hallo, Wereld'); //Dutch
7+
console.log('Hallo, Welt'); //German
8+
console.log('Hola, Mundo'); //Spanish
9+
console.log('Ciao, mondo'); //italian
10+
console.log('Привет мир'); //Russian
11+
console.log('你好,世界'); //chainees
12+
console.log('こんにちは世界'); //japanees
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
console.log("I'm awesome!");
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
let numberX;
3+
console.log(" the value of X is undefined")
4+
console.log(numberX);
5+
numberX = 10;
6+
console.log("the value of Number x is" +" " + numberX);
7+
console.log(numberX);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
let myString = "Fadi Alset";
3+
console.log('the value will be Fadi Alset')
4+
console.log(myString);
5+
myString = "I will be a coder soon Woohooo";
6+
console.log('the value will be I will be a coder soon Woohooo');
7+
console.log(myString);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
let z = 7.25;
3+
console.log(z);
4+
let a = Math.round(z);
5+
console.log(a);
6+
7+
let highestValue;
8+
(a > z) ? highestValue = a : highestValue = z;
9+
console.log(highestValue);
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
let items =[];
3+
console.log('the value will be undifined');
4+
console.log(items);
5+
let animals = ['dog', 'cat', 'zeebra'];
6+
console.log(animals);
7+
animals.push('Piglet');
8+
console.log(animals);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
let mySentence = "Programming is so interesting!";
3+
console.log(mySentence.length)

Week1/homework/ex8-type-checker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
'use strict';

0 commit comments

Comments
 (0)