You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Question:**What will the code below output to the console and why?
273
+
**Question:**What will the code below output to the console and why?
274
274
275
275
```js
276
276
var myObject = {
@@ -290,7 +290,7 @@ myObject.func();
290
290
291
291
----------
292
292
293
-
**Question:**In what order will the numbers 1-4 be logged to the console when the code below is executed? Why?
293
+
**Question:**In what order will the numbers 1-4 be logged to the console when the code below is executed? Why?
294
294
Guess order and why?
295
295
296
296
@@ -305,7 +305,7 @@ Guess order and why?
305
305
306
306
----------
307
307
308
-
**Question:**Tell output of variables:
308
+
**Question:**Tell output of variables:
309
309
310
310
```js
311
311
var a = b =3;
@@ -316,15 +316,15 @@ var a = b = 3;
316
316
What's Palindrome?
317
317
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar. There are also numeric palindromes, including date/time stamps using short digits 11/11/11 11:11 and long digits 02/02/2020.
318
318
319
-
**Question:**Write a simple function that returns a boolean indicating whether or not a string is a palindrome.
319
+
**Question:**Write a simple function that returns a boolean indicating whether or not a string is a palindrome.
320
320
321
321
Test case:
322
322
— level => true
323
323
— levels => false
324
324
325
325
----------
326
326
327
-
**Question:**guess the `d` value
327
+
**Question:**guess the `d` value
328
328
329
329
```js
330
330
var d = {};
@@ -336,7 +336,7 @@ console.log (d)
336
336
337
337
----------
338
338
339
-
**Question:**What will the code below output to the console and why ?
339
+
**Question:**What will the code below output to the console and why ?
340
340
341
341
342
342
```js
@@ -346,15 +346,15 @@ console.log(1 + "2" + "2");
346
346
----------
347
347
348
348
349
-
**Question:**What will the code below output to the console and why ?
349
+
**Question:**What will the code below output to the console and why ?
350
350
351
351
```js
352
352
console.log(1++"2"+"2");
353
353
```
354
354
355
355
----------
356
356
357
-
**Question:**What will the code below output to the console and why ?
357
+
**Question:**What will the code below output to the console and why ?
358
358
359
359
360
360
```js
@@ -363,7 +363,7 @@ console.log(1 + -"1" + "2");
363
363
364
364
----------
365
365
366
-
**Question:**What will the code below output to the console and why ?
366
+
**Question:**What will the code below output to the console and why ?
0 commit comments