Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Nick Morgan

Rating No ratings yet

JavaScript Crash Course is a fun-filled, fast-paced introduction to programming with JavaScript. Dive right in and you’ll be writing code, solving problems, and building working web applications and games in no time. You’ll start by learning fundamental programming concepts, such as variables, arrays, objects, functions, conditionals, loops, classes, and more. Aided by engaging examples and hands-on exercises, you’ll build on this foundation and combine JavaScript with HTML and CSS to create interactive web applications that you can run right away. Then you’ll put your new skills into play with three substantial projects: a Pong-style game with a virtual opponent, an app that generates electronic music, and a platform for visualizing data fetched from an API. Along the way, you’ll learn how to: - Update web pages in real time by manipulating the Document Object Model - Trigger functions in response to events like key presses and mouse clicks - Generate graphics and animations with JavaScript and HTML’s Canvas element - Visualize data with the D3.js library and scalable vector graphics (SVG) - Make electronic music with Tone.js and the Web Audio API If you’ve been thinking about digging into programming, JavaScript Crash Course will get you writing real programs fast. Why wait any longer? Jump on your magic carpet and ride!

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Brief outline
【One-Line Pitch】 JavaScript Crash Course is a fun-filled, fast-paced introduction to programming with JavaScript. Dive right in and yo… 【Book Arc】 - **Opening (~0%–12%)**: Dive right in and you’ll be writing code, solving problems, and building working web applications and games in no time.; Maybe you want to transition into a career in computer programming, or you want to pursue coding as a hobby. - **Early (~12%–35%)**: write string literals inside single quotation marks rather than double quotation marks.; It’s much simpler to use a template literal: The {noun} was {adverb} {adjective}. - **Middle (~35%–65%)**: we can’t make further use of it later.; } } we’re using the same dot notation we’ve used elsewhere to access the properties of an object; - **Late (~65%–88%)**: nvas document.querySelector("#canvas");; Likewise, ball.top paddle.bottom is false and ball.bottom paddle.top is true. - **Ending (~88%–100%)**: names, like A4, as we did in Listing 12-5.; The target amount of time between when something is scheduled and when it’s executed is called the lookahead. 【Key Takeaways】 - **Dive right in and you’…** (Opening): Dive right in and you’ll be writing code, solving problems, and building working web applications and games in no time. - **Maybe you want to tran…** (Opening): Maybe you want to transition into a career in computer programming, or you want to pursue coding as a hobby. - **taining the message “Hello** (Opening): taining the message “Hello, world!” as shown in Figure 1-2. - **write string literals…** (Early): write string literals inside single quotation marks rather than double quotation marks. - **It’s much simpler to u…** (Early): It’s much simpler to use a template literal: The {noun} was {adverb} {adjective}. - **hod (short for concate…** (Early): hod (short for concatenate) adds two arrays together. 【Reading Tips】 - Use Passage locations below to jump into the text and set reading anchors - If this is a brief outline, click Regenerate (top right) for a synthesized guide 【Coverage Limits】 Compressed outline without the model (~33 index chunks). Full structured guide needs AI available.
Page 9
sh Course is a fun, practical, hands-on introduction that I wish I had when I was learning JavaScript. Readers can learn from the very basics all the way thr...
View in text
Excerpt 2
"moon"; let adverb = "strangely"; let adjective = "red"; Without template literals, you’d have to combine the variables into a string by repeatedly using the...
View in text
Excerpt 3
ar view of the object in the console is usually sufficient. Summary   3.  Finally, we use else to log a third possible message if neither of the previous con...
View in text
Excerpt 4
meters and uses this.x and this.y to set the new object’s x and y properties to 0. Finally, the new object is returned and assigned to the player1 variable....
View in text
Excerpt 5
we add a click handler to the ul element. This example is a little different from our previous handlers because the callback function has a parameter, which...
View in text
Excerpt 6
drawing the right score we change the alignment to "right". This way if the scores get into double digits the numbers will extend toward the middle of the sc...
View in text
Excerpt 7
e as an argument ❺. The currentTime property corresponds to the amount of time in seconds that the audio context has been active. By passing audioCtx.current...
View in text
Excerpt 8
g of someone’s voice to make them sound high-pitched like a chipmunk, or slowed it down to make them sound low-pitched like a giant, it’s the same prin
View in text
Tags
AI categories
JavaScript
ISBN: 1718502273
Publisher: No Starch Press
Publish Year: 2024
Language: English
Pages: 376
File Format: PDF
File Size: 3.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…