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

Skip to content

HomeWork_ykaraca #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

> If you are following the curriculum we recommend you to start with module 1: [HTML/CSS/GIT](https://github.com/SocialHackersCodeSchool/HTML-CSS). To get a complete overview, click [here](https://github.com/SocialHackersCodeSchool/curriculum).

> Please help us improve and share your feedback! If you find better tutorials
Expand Down
9 changes: 9 additions & 0 deletions Week1/homework/ex10Compare.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict'
var myArray1=[34,44,"malatya","Mechanicsburg"];
var myArray2=[49,35,"mus",99,"newyork","atina",7];
console.log('The length of the array1 is...' +myArray1.length);
console.log('The length of the array2 is...' +myArray2.length);
if (myArray1.length==myArray2.length){
console.log("They are the same!");
}
else{console.log("Two different sizes")}
11 changes: 11 additions & 0 deletions Week1/homework/ex1logHello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict'
console.log("Halo, dunia!");
console.log("Ciao, mondo!");
console.log("Hola, mundo!");
console.log("Hello, World");
console.log("Merhaba, Dunya");
console.log("Γειά σου Κόσμε");
console.log("مرحبا بالعالم");
console.log("你好,世界");
console.log("Hallo Wereld");
console.log("Ciao mondo");
2 changes: 2 additions & 0 deletions Week1/homework/ex2Syntax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict'
console.log('I\'m awesome');
7 changes: 7 additions & 0 deletions Week1/homework/ex3Log.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'
var numberX;
console.log("what you think the value of x");
console.log("the value of x is "+numberX);
numberX=9;
console.log("what you think the value of x");
console.log("the value of x is "+numberX);
9 changes: 9 additions & 0 deletions Week1/homework/ex4LogString.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict'
var myString="Yusuf karaca";
console.log("what you think the value of string is");
console.log(myString);
myString="Memleket Malatya";
console.log("what you think the value of string is");
console.log(myString);


7 changes: 7 additions & 0 deletions Week1/homework/ex5Round.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'
var z=7.25;
console.log("z : "+z);
var a=7;
console.log("a : "+a);
var m=Math.max(a,z);
console.log("the highest is :"+m);
8 changes: 8 additions & 0 deletions Week1/homework/ex6LogArray.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict'
var items=[];
console.log("what you think the value of the array is ?");
console.log(items);
var animals=["cat","bird","turtle"];
console.log(animals);
animals.push("piglet");
console.log(animals);
4 changes: 4 additions & 0 deletions Week1/homework/ex7LogLeng.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict'
var mySentence="Programming is so interesting!";
var myLength=mySentence.length;
console.log(myLength);
18 changes: 18 additions & 0 deletions Week1/homework/ex8TypeC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'
var myString1="Same";
var myString2="Same";
var myNumber1=44;
var myNumber2=40;
console.log(typeof myString1);
console.log(typeof myString2);
if (typeof myString1==typeof myString2){
console.log("SAME TYPE");
}
else{console.log("Not the same...");}

console.log(typeof myString1);
console.log(typeof myNumber1);
if (typeof myString1==typeof myNumber1){
console.log("SAME TYPE");
}
else{console.log("Not the same...");}
7 changes: 7 additions & 0 deletions Week1/homework/ex9LogRemain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'
// 7/3=2 and remain is 1 so x= 1,
console.log(7%3);
// 21/4=5 and remain is 1 so y=1,
console.log(21%4);
// 13/2=6 and remain 1 so z = 1,
console.log(13%2);
1 change: 1 addition & 0 deletions Week2/Week2Homework
Submodule Week2Homework added at 5a2f55