Yueh Andrew - JavaScript Coding For Teens. A Beginner's Guide To Developing Websites And Games.pdf

(5207 KB) Pobierz
Copyright © 2021 by Rockridge Press, Emeryville, California
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any
means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Sections
107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to
the Publisher for permission should be addressed to the Permissions Department, Rockridge Press, 6005
Shellmound Street, Suite 175, Emeryville, CA 94608.
Limit of Liability/Disclaimer of Warranty: The Publisher and the author make no representations or warranties with
respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including
without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or
promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work
is sold with the understanding that the Publisher is not engaged in rendering medical, legal, or other professional
advice or services. If professional assistance is required, the services of a competent professional person should be
sought. Neither the Publisher nor the author shall be liable for damages arising herefrom. The fact that an individual,
organization, or website is referred to in this work as a citation and/or potential source of further information does not
mean that the author or the Publisher endorses the information the individual, organization, or website may provide or
recommendations they/it may make. Further, readers should be aware that websites listed in this work may have
changed or disappeared between when this work was written and when it is read.
For general information on our other products and services or to obtain technical support, please contact our
Customer Care Department within the United States at (866) 744-2665, or outside the United States at (510) 253-
0500.
Rockridge Press publishes its books in a variety of electronic and print formats. Some content that appears in print
may not be available in electronic books, and vice versa.
TRADEMARKS: Rockridge Press and the Rockridge Press logo are trademarks or registered trademarks of Callisto
Media Inc. and/or its affiliates, in the United States and other countries, and may not be used without written
permission. All other trademarks are the property of their respective owners. Rockridge Press is not associated with
any product or vendor mentioned in this book.
Interior and
Cover
Designer: Lisa Schreiber
Art Producer: Janice Ackerman
Editor: Andrea Leptinsky
Production Manager: Martin Worthington
Illustrations ©2021 Carl Wein
Paperback ISBN: 978-1-64876-111-9
eBook ISBN: 978-1-64876-112-6
R0
I dedicate this book to Frank and May Yueh for supporting me during my
transition to a career in coding.
Contents
INTRODUCTION
CHAPTER 1: Welcome to Programming in JavaScript
Why JavaScript?
What Are Programs?
Are Websites Computer Programs?
The Fundamentals
Words to Know
CHAPTER 2: JavaScript: Setting Up
Coding Programs
Text Editor (VS Code)
JavaScript Runtime (Node.js)
Downloading Methods
Windows (PC) Environment Setup
Mac Environment Setup
Using a Code Editor
Setting Up Your Terminal
Writing Your First Code
Bugs
CHAPTER 3: Variables and Data Types
Code Structure
Variables
Data Types
Strings
Boolean
null
undefined
Type Coercion
Data Structures
Objects
Zgłoś jeśli naruszono regulamin