- What is the result of executing each of these lines in the console? Why?
> var a; typeof a;
> var s = '1s'; s++;
> !!"false";
> !!undefined;
> typeof -Infinity;
> 10 % "0";
> undefined == null;
> false === "";
> typeof "2E+2";
> a = 3e+3; a++;
- What is the value of v after the following?
> var v = v || 10;
Experiment by first setting v
to 100
, 0
, or null
.
- Write a small program that prints out the multiplication table. Hint: use a loop nested inside another loop.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.