Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixed commoits
  • Loading branch information
EnwerMemet committed Dec 1, 2019
commit 585e91eaa23cc43b60d2a0041eabc86068d9b04d
34 changes: 34 additions & 0 deletions Week2/LESSONPLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,40 @@ if (s2 == s1) {
}
```

let statement=[
let s = "Hello".toLowerCase();
let l = s.length;


function sum(a, b) {
return a + b;
}
let max = function (a, b) {
return a > b ? a : b;
}

let s1 = sum(4, 5);
let s2 = 4 + 5;

if (s2 == s1) {
console.log("same");
} else {
console.log("not same");
}
]

let expression =[
"Hello".toLowerCase()

s.length

sum(4, 5)

function (a, b)

return a + b
]

List all 11 *statements* in the code above
List all 28 *expressions* in the code above (BONUS!)

Expand Down
9 changes: 9 additions & 0 deletions Week2/playground.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
let shoes = `green`;
let shirt = `green`;
let pants = `green`;

if (shoes === `green` && shoes === `green` && pants === `green`){
console.log('they are green');
}