This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const scores = [70, 65, 68, 89, 90, 85, 70, 57, 56] | |
scores.every(score => score >=70 ) | |
scores.some(score => score >=70 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const id = setInterval( () => { | |
console.log(Math.random()) | |
}, 2000) | |
//clearInterval(id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Hello...!') | |
setTimeout( () => { | |
console.log('...are you still there?') | |
}, 3000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const secretWord = 'Hello'; | |
let guess = prompt ('Enter the Secret Word ...') | |
while (guess !== secretWord) { | |
guess = prompt ('Enter the Secret Word ...') | |
} | |
alert ('Congrats! You got the secret Word. Your reward is $5') |
NewerOlder