- What is the result of the following statements? Why?
!!0 == '0'
3 + '4'
2 * 7 / 0
var pers = {
name: 'John',
age: 34
}
pers.name
pers['age']
- What does this program do?
const result = prompt("What language are we learning?");
if(result === "javascript"){
console.log("You're right!");
}
else{
console.log("No!");
}
-
Modify the program form exercise 2 so it will ask until you get the right answer.
-
Given a number, write a program that will log the Fibonacci sequence until it reaches the given number.