Feel free to reach out to me! 😊
"BOOMIN".indexOf("O");- A: 2
- B: 1
- C: 3
- D: -1
let friendsAtParty = 20;
while (friendsAtParty > 10) {
friendsAtParty = friendsAtParty + 1;
}
console.log(friendsAtParty);- A:
true - B:
false - C:
Infinite - D:
undefined
"BOOMIN".indexOf("o"); // Here `o` is small.- A: 2
- B: 1
- C: 3
- D: -1
let answerToLife = 4 + 1 * 2 * 4 + 2;
console.log(answerToLife);- A: 42
- B: 14
- C: 16
- D: 40
let boomin = [100, 50, 2].sort();
console.log(boomin);- A:
[2, 50, 100] - B:
[100, 50, 2] - C:
[100, 2, 50] - D:
[2, 100, 50]
let abc = "abc";
abc[1] = "d";
console.log(abc);- A: "d"
- B: "abc"
- C: "adc"
- D:
error
let boomin = [1, 2, 3];
result = boomin.concat(4);
console.log(boomin);- A:
[1,2,3] - B:
[1,2,3,4] - C:
4 - D:
[1,2,3,[4]]
- A:
boolean - B:
Array - C:
String - D:
Number
function getAge(...args) {
console.log(typeof args);
}
getAge(21);- A:
"number" - B:
"array" - C:
"object" - D:
"NaN"
- A:
true - B:
false
function doesThisWork("Boomin") {
return true
}- A:
true - B:
undefined - C:
SyntaxError - D:
false