0% found this document useful (0 votes)
2 views75 pages

Improve Your JavaScript Skills: Challenges

This document is a book titled 'Javascript Challenges' by Alejandro Garcia, aimed at improving Javascript skills through various challenges. It includes a table of contents outlining numerous challenges and topics related to Javascript programming. The book is available for purchase on Leanpub and encourages readers to share their experience on Twitter.

Uploaded by

mukeshadvani41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views75 pages

Improve Your JavaScript Skills: Challenges

This document is a book titled 'Javascript Challenges' by Alejandro Garcia, aimed at improving Javascript skills through various challenges. It includes a table of contents outlining numerous challenges and topics related to Javascript programming. The book is available for purchase on Leanpub and encourages readers to share their experience on Twitter.

Uploaded by

mukeshadvani41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Javascript Challenges

Rewarding Challenges to Improve your Javascript Skills

Alejandro Garcia
This book is for sale at [Link]

This version was published on 2020-08-20

This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing
process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and
many iterations to get reader feedback, pivot until you have the right book and build traction once
you do.

© 2020 Alejandro Garcia


Tweet This Book!
Please help Alejandro Garcia by spreading the word about this book on Twitter!
The suggested tweet for this book is:
Starting with these awesome Javascript Challenges !!
The suggested hashtag for this book is #javascript.
Find out what other people are saying about the book by clicking on this link to search for this
hashtag on Twitter:
#javascript
Contents

Other Books by Alejandro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1


Recommended Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Who is this book for ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
What this book covers ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Chapter 1: Javascript Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8


1. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5. Which one is true? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
8. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
9. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
10. What happens when we do this? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
11. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
12. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
13. What are the three phases of event propagation? . . . . . . . . . . . . . . . . . . . . . . . 9
14. All object have prototypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
15. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
16. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
17. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
18. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
19. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
20. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
21. What’s value of sum? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
22. How long is cool_secret accessible? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
23. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
24. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
25. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CONTENTS

26. The JavaScript global execution context creates two things for you: the global object,
and the “this” keyword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
27. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
28. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
29. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
30. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
31. What is the [Link] when clicking the button? . . . . . . . . . . . . . . . . . . . . . . 12
32. When you click the paragraph, what’s the logged output? . . . . . . . . . . . . . . . . . . 12
33. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
34. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
35. Which of these values are falsy? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
36. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
37. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
38. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
39. Everything in JavaScript is either a… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
40. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
41. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
42. What does the setInterval method return in the browser? . . . . . . . . . . . . . . . . . 14
43. What does this return? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
44. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
45. What does this return? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
46. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
47. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
48. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
49. What’s the value of num? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
50. What’s the output‘? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
51. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
52. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
53. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
54. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
55. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
56. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
57. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
58. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
59. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
60. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
61. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
62. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
63. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
64. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
65. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
66. With which constructor can we successfully extend the Dog class? . . . . . . . . . . . . . 17
67. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
CONTENTS

68. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17


69. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
70. What’s missing? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
71. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
72. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
73. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
74. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
75. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
76. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
77. Is this a pure function? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
78. What is the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
79. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
80. What is the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
81. What is the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
82. What should be the value of method be to log? . . . . . . . . . . . . . . . . . . . . . . . . 19
83. What is the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
84. What is the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
85. What kind of information would get logged? . . . . . . . . . . . . . . . . . . . . . . . . . . 20
86. Which option is a way to set hasName equal to true, provided you cannot pass true
as an argument? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
87. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
88. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
89. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
90. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
91. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
92. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
93. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
94. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
95. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
96. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
97. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
98. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
99. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
100. What do we need to add to the person object to get ["Lydia Hallie", 21] as the
output of [...person]? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
101. What’s the value of output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
102. What’s the value of output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
103. What’s the value of output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
104. What’s its value? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
105. What’s its value? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
106. What’s its value? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
107. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
108. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
CONTENTS

109. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23


110. What does this method do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
111. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
112. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
113. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
114. What will happen? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
115. Which method(s) will return the value 'Hello world!'? . . . . . . . . . . . . . . . . . . 24
116. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
117. Which of the following options will return 6? . . . . . . . . . . . . . . . . . . . . . . . . . 24
118. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
119. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
120. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
121. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
122. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
123. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
124. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
125. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
126. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
127. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
128. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
129. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
130. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
131. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
132. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
133. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
134. How can we invoke sum in [Link] from [Link]? . . . . . . . . . . . . . . . . . . . . . 27
135. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
136. Which of the following will modify the person object? . . . . . . . . . . . . . . . . . . . 27
137. Which of the following will modify the person object? . . . . . . . . . . . . . . . . . . . 27
138. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
139. What’s the output? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Chapter 2: Answers to the Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28


Challenge 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Challenge 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Challenge 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Challenge 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Challenge 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Challenge 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Challenge 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Challenge 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Challenge 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Challenge 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
CONTENTS

Challenge 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Challenge 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Challenge 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Challenge 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Challenge 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Challenge 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Challenge 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Challenge 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Challenge 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Challenge 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Challenge 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Challenge 22. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Challenge 23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Challenge 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Challenge 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Challenge 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Challenge 27. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Challenge 28. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Challenge 29. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Challenge 30. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Challenge 31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Challenge 32. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Challenge 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Challenge 34. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Challenge 35. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Challenge 36. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Challenge 37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Challenge 38. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Challenge 39. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Challenge 40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Challenge 41. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Challenge 42. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Challenge 43. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Challenge 44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Challenge 45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Challenge 46. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Challenge 47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Challenge 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Challenge 49. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Challenge 50. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Challenge 51. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Challenge 52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Challenge 53. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
CONTENTS

Challenge 54. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Challenge 55. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Challenge 56. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Challenge 57. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Challenge 58. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Challenge 59. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Challenge 60. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Challenge 61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Challenge 62. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Challenge 63. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Challenge 64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Challenge 65. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Challenge 66. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Challenge 67. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Challenge 68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Challenge 69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Challenge 70. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Challenge 71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Challenge 72. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Challenge 73. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Challenge 74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Challenge 75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Challenge 76. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Challenge 77. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Challenge 78. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Challenge 79. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Challenge 80. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Challenge 81. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Challenge 82. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Challenge 83. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Challenge 84. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Challenge 85. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Challenge 86. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Challenge 87. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Challenge 88. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Challenge 89. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Challenge 90. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Challenge 91. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Challenge 92. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Challenge 93. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Challenge 94. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Challenge 95. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Challenge 96. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
CONTENTS

Challenge 97. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Challenge 98. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Challenge 99. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Challenge 100. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Challenge 101. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Challenge 102. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Challenge 103. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Challenge 104. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Challenge 105. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Challenge 106. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Challenge 107. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Challenge 108. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Challenge 109. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Challenge 110. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Challenge 111. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Challenge 112. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Challenge 113. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Challenge 114. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Challenge 115. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Challenge 116. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Challenge 117. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Challenge 118. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Challenge 119. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Challenge 120. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Challenge 121. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Challenge 122. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Challenge 123. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Challenge 124. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Challenge 125. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Challenge 126. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Challenge 127. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Challenge 128. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Challenge 129. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Challenge 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Challenge 131. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Challenge 132. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Challenge 133. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Challenge 134. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Challenge 135. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Challenge 136. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Challenge 137. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Challenge 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Challenge 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
CONTENTS

Keep developing your Javascript skills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64


Other Books by Alejandro

Javascript Snippets: Secret Code Snippets used by Powerful Developers to create Innovative Apps

Javascript Snippets: Secret Code Snippets used by Powerful Developers to create Innovative Apps¹
¹[Link]
Other Books by Alejandro 2

Up to Speed with Javascript in 59 minutes

Up to Speed with Javascript in 59 minutes²


²[Link]
Other Books by Alejandro 3

Learning Python Programming from Scratch

Learning Python Programming from Scratch³


³[Link]
jschallenges
Other Books by Alejandro 4

Frontend Developer Interview Questions: Prep for the interview and get the job you want

Frontend Developer Interview Questions: Prep for the interview and get the job you want⁴
⁴[Link]
jschallenges
Other Books by Alejandro 5

Appwrite Up and Running: Build High Performance cross-platform Apps quickly with this Free unified Backend

Appwrite Up and Running: Build High Performance cross-platform Apps quickly with this Free
unified Backend⁵

Recommended Resources
If you are looking into video tutorials and trainings to polish your Javascript and programming skills
take a look at the below options:

• Udemy Javascript⁶
• Professional Certifications⁷
⁵[Link]
⁶[Link]
2Fsearch%2F%3Fq%3Djavascript
⁷[Link]
2Fcomputer-science
Other Books by Alejandro 6

Tuesday Messages
On Tuesday, I send some of my Free books to subscribers. You can expect updates, technical articles
and courses recommendations. People tell me this content is so valuable to them that sometimes
they ask me to send info on particular subjects.
If you would like to receive the exclusive free content only for subscribers, then you can join
here: Alejandro’s Updates⁸
⁸[Link]
Introduction
Javascript is ideal for Frontend projects, building Applications, Server Side, Mobile, IoT, APIs.
Javascript is everywhere and it is one of the most interesting languages to learn.
One of the best ways to learn Javascript is through a series of challenges which can be entertaining
and fun, the challenges collected in this book are designed to help developers increase their
JavaScript, logic and other coding skills.
Feel free to discuss with other colleagues, I’m sure you will probably find an alternative way of
solving the challenges. The idea is for advanced users to find a better way of beating the challenge
proposing answers not presented in the book and for those who are starting with Javascript be able
to learn through a rewarding and engaging Javascript coding challenge.

Who is this book for ?


This book is for someone who wants to solve the challenges and at the same time improve their
coding skills.
It’s recommended to have a basic understanding of Javascript at least to use the challenges to improve
your coding skills.

What this book covers ?


The book presents 139 challenges, in Chapter 1 you will find all the challenges including possible
answers, in Chapter 2 there are all the Answers to the challenges.
Chapter 1: Javascript Challenges
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

1. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

2. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

3. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

4. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

5. Which one is true?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

6. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 9

7. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

8. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

9. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

10. What happens when we do this?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

11. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

12. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

13. What are the three phases of event propagation?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 10

14. All object have prototypes.


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

15. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

16. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

17. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

18. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

19. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

20. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 11

21. What’s value of sum?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

22. How long is cool_secret accessible?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

23. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

24. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

25. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

26. The JavaScript global execution context creates


two things for you: the global object, and the “this”
keyword.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

27. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 12

28. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

29. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

30. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

31. What is the [Link] when clicking the button?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

32. When you click the paragraph, what’s the logged


output?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

33. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

34. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 13

35. Which of these values are falsy?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

36. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

37. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

38. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

39. Everything in JavaScript is either a…


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

40. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

41. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 14

42. What does the setInterval method return in the


browser?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

43. What does this return?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

44. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

45. What does this return?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

46. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

47. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

48. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 15

49. What’s the value of num?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

50. What’s the output‘?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

51. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

52. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

53. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

54. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

55. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 16

56. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

57. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

58. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

59. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

60. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

61. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

62. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 17

63. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

64. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

65. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

66. With which constructor can we successfully extend


the Dog class?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

67. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

68. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

69. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 18

70. What’s missing?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

71. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

72. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

73. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

74. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

75. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

76. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 19

77. Is this a pure function?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

78. What is the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

79. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

80. What is the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

81. What is the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

82. What should be the value of method be to log?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

83. What is the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 20

84. What is the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

85. What kind of information would get logged?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

86. Which option is a way to set hasName equal to true,


provided you cannot pass true as an argument?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

87. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

88. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

89. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

90. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 21

91. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

92. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

93. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

94. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

95. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

96. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

97. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 22

98. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

99. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

100. What do we need to add to the person object to get


["Lydia Hallie", 21] as the output of [...person]?

This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

101. What’s the value of output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

102. What’s the value of output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

103. What’s the value of output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

104. What’s its value?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 23

105. What’s its value?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

106. What’s its value?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

107. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

108. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

109. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

110. What does this method do?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

111. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 24

112. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

113. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

114. What will happen?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

115. Which method(s) will return the value 'Hello


world!'?

This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

116. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

117. Which of the following options will return 6?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

118. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 25

119. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

120. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

121. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

122. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

123. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

124. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

125. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 26

126. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

127. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

128. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

129. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

130. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

131. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

132. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 1: Javascript Challenges 27

133. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

134. How can we invoke sum in [Link] from [Link]?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

135. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

136. Which of the following will modify the person


object?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

137. Which of the following will modify the person


object?
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

138. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

139. What’s the output?


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 1.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 2.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 3.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 29

Challenge 4.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 5.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 6.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 7.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 30

Challenge 8.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 9.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 10.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 11.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 31

Challenge 12.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 13.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 14.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 15.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 32

Challenge 16.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 17.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 18.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 19.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 33

Challenge 20.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 21.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 22.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 23.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 34

Challenge 24.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 25.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 26.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 27.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 35

Challenge 28.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 29.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 30.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 31.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 36

Challenge 32.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 33.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 34.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 35.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 37

Challenge 36.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 37.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 38.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 39.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 38

Challenge 40.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 41.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 42.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 43.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 39

Challenge 44.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 45.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 46.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 47.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 40

Challenge 48.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 49.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 50.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 51.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 41

Challenge 52.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 53.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 54.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 55.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 42

Challenge 56.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 57.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 58.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 59.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 43

Challenge 60.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 61.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 62.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 63.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 44

Challenge 64.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 65.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 66.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 67.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 45

Challenge 68.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 69.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 70.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 71.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 46

Challenge 72.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 73.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 74.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 75.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 47

Challenge 76.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 77.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 78.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 79.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 48

Challenge 80.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 81.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 82.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 83.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 49

Challenge 84.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 85.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 86.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 87.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 50

Challenge 88.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 89.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 90.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 91.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 51

Challenge 92.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 93.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 94.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 95.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 52

Challenge 96.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 97.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 98.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 99.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 53

Challenge 100.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 101.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 102.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 103.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 54

Challenge 104.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 105.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 106.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 107.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 55

Challenge 108.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 109.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 110.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 111.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 56

Challenge 112.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 113.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 114.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 115.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 57

Challenge 116.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 117.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 118.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 119.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 58

Challenge 120.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 121.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 122.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 123.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 59

Challenge 124.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 125.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 126.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 127.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: B
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 60

Challenge 128.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 129.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 130.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 131.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 61

Challenge 132.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 133.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 134.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 135.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Chapter 2: Answers to the Challenges 62

Challenge 136.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 137.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: C
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 138.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: A
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Challenge 139.
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Answer: D
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
Keep developing your Javascript skills
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.
About the Author
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Other Author Profiles


This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

Copyright
This content is not available in the sample book. The book can be purchased on Leanpub at http:
//[Link]/javascript-challenges.

You might also like