Skip to content

Commit 7e675d9

Browse files
committed
To be continued - unfinish work
1 parent e792da6 commit 7e675d9

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict'
2+
3+
for (let i=0; i<=20; i++) {
4+
if (i === 0) {
5+
console.log(i + " is even");
6+
}
7+
else if (i % 2 === 0) {
8+
console.log(i + " is even");
9+
}
10+
else {
11+
console.log(i + " is odd");
12+
}
13+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict'
2+
let mealRecipt = {
3+
meal: 'omelete',
4+
serves: 5,
5+
ingredients: [
6+
"4 eggs",
7+
"2 strips of bacon",
8+
"tsp salt/pepper"
9+
]
10+
};
11+
12+
for (var key of Object.keys(mealRecipt)) {
13+
console.log(key + ": " + mealRecipt[key])
14+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict'
2+
3+
let commars = "hello,this,is,a,difficult,to,read,sentence";
4+
console.log(commars.length);
5+
6+
let removeCommars = commars.split(',').join(""); //replace(/,/g, '');
7+
console.log(removeCommars);
8+
9+
10+
11+
/*for(let i = 0; i<=20; i++);{
12+
if (i === 0);{
13+
console.log(i + ' is even');
14+
}
15+
else if (1 % 2 === 0);{
16+
console.log(i + ' is even');
17+
}
18+
else {
19+
console.log(i + ' is odd');
20+
}
21+
}
22+
23+
*/

0 commit comments

Comments
 (0)