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 69941ca

Browse files
authored
Merge pull request #1 from FatihUcars/week-1-homework-Fatih_U
Homework completed.
2 parents 2034894 + 7497001 commit 69941ca

File tree

8 files changed

+92
-0
lines changed

8 files changed

+92
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"use strict";
2+
var vehicles = [];
3+
console.log('These are some vehicles.');
4+
console.log(vehicles);
5+
var favAnimals = ['Cat', 'Dog', 'Elephant'];
6+
console.log(favAnimals);
7+
favAnimals.push('Piglet');
8+
console.log(favAnimals);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
console.log('I\'m awesome');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1+
"use strict";
2+
console.log("Hello world!"); //English
3+
console.log("Merhaba dunya!"); //Turkish
4+
console.log("Halo dunia!"); //Indonesian
5+
console.log("Ciao mondo!"); //Italian
6+
console.log("Hola mundo!"); //Spanish
7+
console.log("Hallo wereld!"); //Dutch
8+
console.log("Bonjour le monde!"); //French
9+
console.log("salve mundi!"); //Latin
10+
console.log("Hallo welt!"); //German
11+
console.log("Salamu dunia!"); //Swahili
12+
13+
114

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"use strict";
2+
var mySentence = 'Programming is so interesting!';
3+
var lngth = mySentence.length;
4+
console.log(lngth);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
var numberX;
3+
console.log('Value of x is his age');
4+
console.log(numberX);
5+
numberX = 32;
6+
console.log('Value of numberX is age of someone else.');
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+
var myString = 'Fatih Ucar';
3+
console.log('This is my name.');
4+
console.log(myString);
5+
myString = 'To Kill a Mockingbird';
6+
console.log('This is a great book.');
7+
console.log(myString);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
var z = 7.25;
3+
console.log(z);
4+
var a = (Math.round(z));
5+
console.log(a);
6+
Math.max(z, a);
7+
console.log(Math.max(z, a));
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"use strict";
2+
let book = 'It was the best of times';
3+
let song = 'In the year 2525';
4+
let person = {firstName:"John", lastName:"Wick", age:40, eyeColor:"green"};
5+
let animal = {type:'cat', name:'Silly', color:'white and black'};
6+
7+
console.log(typeof 'book');
8+
console.log(typeof 'animal');
9+
10+
if (typeof 'book' === typeof 'song') {
11+
console.log('SAME TYPE')
12+
} else {
13+
console.log('Not the same')
14+
};
15+
16+
if (typeof 'book' === typeof 'person') {
17+
console.log('SAME TYPE')
18+
} else {
19+
console.log('Not the same')
20+
};
21+
22+
if (typeof 'book' === typeof 'animal') {
23+
console.log('SAME TYPE')
24+
} else {
25+
console.log('Not the same')
26+
};
27+
28+
if (typeof 'song' === typeof 'person') {
29+
console.log('SAME TYPE')
30+
} else {
31+
console.log('Not the same')
32+
};
33+
34+
if (typeof 'song' === typeof 'animal') {
35+
console.log('SAME TYPE')
36+
} else {
37+
console.log('Not the same')
38+
};
39+
40+
if (typeof 'person' === typeof 'animal') {
41+
console.log('SAME TYPE')
42+
} else {
43+
console.log('Not the same')
44+
};

0 commit comments

Comments
 (0)