Learning JavaScript Data Structures and Algorithms Write complex and powerful JavaScript code using the latest ECMAScript 3rd Edition Loiane Groner 2024 Scribd Download
Learning JavaScript Data Structures and Algorithms Write complex and powerful JavaScript code using the latest ECMAScript 3rd Edition Loiane Groner 2024 Scribd Download
com
https://ebookmeta.com/product/learning-javascript-data-
structures-and-algorithms-write-complex-and-powerful-
javascript-code-using-the-latest-ecmascript-3rd-edition-
loiane-groner/
OR CLICK HERE
DOWLOAD NOW
https://ebookmeta.com/product/ocp-java-se-8-programmer-ii-exam-guide-
exam-1z0-809-kathy-sierra-bert-bates-elisabeth-robson/
ebookmeta.com
Economics: Private & Public Choice 17th Edition James D.
Gwartney
https://ebookmeta.com/product/economics-private-public-choice-17th-
edition-james-d-gwartney/
ebookmeta.com
https://ebookmeta.com/product/how-to-develop-a-profitable-trading-
strategy-1st-edition-heikin-ashi-trader/
ebookmeta.com
https://ebookmeta.com/product/a-history-of-cant-and-slang-
dictionaries-vol-4-1937-1984-julie-coleman/
ebookmeta.com
https://ebookmeta.com/product/the-new-atlantic-order-the-
transformation-of-international-politics-1860-1933-1st-edition-
patrick-o-cohrs/
ebookmeta.com
Loiane Groner
BIRMINGHAM - MUMBAI
Learning JavaScript Data
Structures and Algorithms
Third Edition
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or
by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented.
However, the information contained in this book is sold without warranty, either express or implied. Neither the author,
nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been
caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy
of this information.
ISBN 978-1-78862-387-2
www.packtpub.com
To my parents, for their love and support and for guiding me throughout all these years.
To my husband, for his support and for being my loving partner throughout our life journey.
– Loiane Groner
mapt.io
Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
developers and tech professionals, just like you, to help them share
their insight with the global tech community. You can make a general
application, apply for a specific hot topic that we are recruiting an
author for, or submit your own idea.
Table of Contents
Title Page
Copyright and Credits
Learning JavaScript Data Structures and Algorithms  Third Edition
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
1. JavaScript – A Quick Overview
JavaScript data structure and algorithms
Setting up the environment
The minimum setup to work with JavaScript
Using web servers
Node.js http-server
JavaScript basics
Variables
Scope variable
Operators
Truthy and falsy
Functions of the equals operators (== and ===)
Control structures
Conditional statements
Loops
Functions
Object-oriented programming in JavaScript
Debugging and tools
Debugging with VSCode
Summary
Another Random Document on
Scribd Without Any Related Topics
The Hull of the Houseboat is Built on the Scow Type so That It can be Run in
Shallow Water without Danger
The Soil is Kept Moist by the Water Feeding through the Sponges from the
Under Side
The Head
The head requires much more work than any of the other sections.
There are two principal rings to this section, as shown in Fig. 1. The
inner ring is the more important, the outer one being added for the
protection of the points when alighting. The construction of the
framework is shown in Fig. 2. It is made entirely of bamboo. The
bamboo is split into strips, about ³⁄₁₆ in. wide, for the ring A. As the
bamboo strips will be much too thick, they must be pared down to
less than ¹⁄₁₆ in. The diameter of the ring A is 12 in., and a strip of
bamboo to make this ring should be about 38 in. long, so that there
will be some end for making a lap joint. The ends of the strip are held
securely together by winding them with linen thread. The Chinese
boys use strips of rice paper, about ¹⁄₂ in. wide and torn lengthwise of
the paper. The rice-paper strips are made wet with paste before
winding them on the joint, and when they dry out the shrinkage will
bind the ends securely.
Two crosspieces, of the same weight as the ring stick, are placed
3¹⁄₂ in. apart, at equal distances from the center and parallel, as
shown at B and C. The ends of these pieces are turned at a sharp
angle and lashed to the inside surface of the ring A. To make these
bends, heat the bamboo over a candle flame until it will give under
pressure, then bend and it will stay in shape after it becomes cold.
This method of bending should be remembered, as it is useful in
making all kinds of kites. Two small rings, each 3¹⁄₂ in. in diameter,
are put in between the two parallel pieces, as shown at D and E.
These are for the eyes of the dragon. The rings are lashed to the two
crosspieces B and C. As the eyes revolve in the rings they should be
made perfectly true. This can be done by shaping the bamboo about
a perfectly round cylinder, 3¹⁄₂ in. in diameter. To stiffen the whole
framework, two pieces of bamboo, ¹⁄₁₆ in. thick, ¹⁄₈ in. wide, and 20
in. long, are lashed to the back as shown by F and G. There is a
space of 3 in. between the inner ring A and the outer ring H, giving
the latter a diameter of 18 in. It is made of a bamboo strip, ¹⁄₈ in.
wide, and should be less than ¹⁄₁₆ in. thick. It may be necessary to
make this large ring from two pieces of bamboo, to get the length,
and in such case be careful to make a perfect ring with the ends well
lashed together. Two short pieces are lashed to the two rings, as
shown at J and K. The supports for the horns consist of two pieces,
¹⁄₈ in. wide and less than ¹⁄₁₆ in. thick, and they are lashed to the
upper crosspiece and to both rings, so that the parts L and M are
exactly halfway between the ends of the pieces F and G and radiate
out from the center of the ring A, the other parts, N and O, pointing to
the center of the eye rings, respectively. The ears are unimportant
and may be put on if desired. The rings on the horns and the stick
ends may be from ¹⁄₂ to 2 in. in diameter, cut from stiff paper, but if
larger, made of bamboo.
Fig. 1 Fig. 2
The Kite-Head Section, Having Horns, The Framework for the Head Section
Ears, and Revolving Eyes, Is Very is Made Entirely of Bamboo Strips
Hideous Lashed at the Joints
Chinese rice paper is the best material for covering, and it should
be stretched tightly so that there will be no buckling or bagging
places. The only part covered is that inside of the inner ring A, the
horns, and the ears, leaving the eye rings open. The shades are put
on with a brush and water colors, leaving the face white, or it can be
tinted in brilliant colors. Leave the horns white and color the tongue
red.
The Eyes
The frame for each eye is made of bamboo, pared down to ¹⁄₃₂ in.
in thickness and formed into a perfect ring, 3¹⁄₄ in. in diameter. Each
ring revolves on an axle made of wire passed through the bamboo
exactly on the diameter, as shown at P, Fig. 3. The wire should be
long enough to pass through the socket ring D or E, Fig. 2, also, and
after the eye ring is in place in the socket ring and the axle adjusted,
the latter is fastened to the eye ring with a strip of paper wrapped
tightly around the wire and pasted to the bamboo of the ring. A glass
bead, placed on the wire axle between the socket rings D or E and
the eye ring Q on each side, keeps them apart and the revolving one
from striking the other.
Each side of the eye ring is covered halfway with rice paper, as
shown in Fig. 4. The part R is on the upper front half, and that shown
by S is on the back lower half. Placing the two halves in this manner
causes an unequal pressure of the wind on the whole eyepiece, and
thus causes it to revolve on the axle. The front upper half of the
eyepiece is made black, and the smaller dark portion extending
below the darkened half is a round piece of paper placed just
between the two halves so that half of it will show on both front and
back of the eyepiece. When the eyepiece is given a half turn in its
socket the back side will come to the front and will appear just the
same as the other side. Some kite builders add pieces of mirror
glass to the eyes, to reflect the light and cause flashes as the eyes
revolve in their sockets.
A Section Kite
The ring for the section kite is made the same size as the inner
ring of the head kite, or in this case 12 in. in diameter. The bamboo
for making this ring should be ¹⁄₈ in. wide and ¹⁄₁₆ in. thick. The
balancer stick, 36 in. long, is located about the same place as the
cross-stick F, as shown in Fig. 2, and must be made small, light and
well balanced. Small tufts of tissue paper, or feathers, are attached
to the tip ends of the balancer sticks, as shown in Fig. 5. The cover
for the section kite is put on tightly, the same as for the head, the
colors indicated in the sketch being only suggestions, as the builder
can color them as desired. The balancer on the last section should
have streamers, as shown in Fig. 6, for a finish. The streamers are
made of light cloth.
Fig. 3 Fig. 4
Two Bamboo Rings with Paper Coverings, to Make Them Turn in the Wind,
Constitute the Eyes
Fig. 6 Fig. 7
Fig. 8 Fig. 5
The Section Kites Have Balancers and the Disks are Given Bright Colors So
That They will Produce the Effect of a Great Dragon When in the Air, the
Head Piece Having a Ball Balancer Hanging from the Under Edge
The Harness
The Bridle
The Sunshade and Seat are Mounted on Wheels So That the Device can be
Easily Moved About