Jones Darren - Learn To Code With JavaScript.pdf
(
10621 KB
)
Pobierz
i
Learn to Code with JavaScript
Copyright © 2021 SitePoint Pty. Ltd.
Product Manager:
Simon Mackie
Technical Editor:
James Hibbard
English Editor:
Ralph Mason
Cover Designer:
Alex Walker
Notice of Rights
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 embodied in critical articles or reviews.
Notice of Liability
The author and publisher have made every effort to ensure the accuracy of the information
herein. However, the information contained in this book is sold without warranty, either express or
implied. Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable
for any damages to be caused either directly or indirectly by the instructions contained in this
book, or by the software or hardware products described herein.
Trademark Notice
Rather than indicating every occurrence of a trademarked name as such, this book uses the
names only in an editorial fashion and to the benefit of the trademark owner with no intention of
infringement of the trademark.
Published by SitePoint Pty. Ltd.
Level 1, 110 Johnston St, Fitzroy
VIC Australia 3065
Web: www.sitepoint.com
Email: books@sitepoint.com
ISBN 978-1-925836-40-0 (print)
ISBN 978-1-925836-41-7 (ebook)
Printed and bound in the United States of America
ii
Learn to Code with JavaScript
About Darren Jones
Darren has enjoyed coding since learning how to program in BASIC on his first
Acorn Electron computer. Since then, he’s taught himself Ruby and JavaScript
and is the author of
JavaScript: Novice to Ninja
and
Jump Start Sinatra.
He also
produced the
Getting Started With Ruby
video tutorials for SitePoint Premium
and has written a number of articles on the SitePoint website. He was born in
the city of Manchester in the UK, where he still lives, and he teaches
Mathematics and Computing at a local high school. You can find him on
Twitter
@daz4126
1
.
About SitePoint
SitePoint specializes in publishing fun, practical, and easy-to-understand
content for web professionals. Visit
https://www.sitepoint.com/
to access our
blogs, books, newsletters, articles, and community forums. You’ll find a stack
of information on JavaScript, PHP, Ruby, mobile development, design, and
more.
1. https://twitter.com/daz4126
Table of Contents
iii
Table of Contents
Preface
.......................................................................................... xix
Who Should Read This Book?
................................................... xx
Conventions Used
........................................................................... xx
Supplementary Materials
............................................................ xxi
Chapter 1:
Press Start
................................................... 1
Programming
........................................................................................2
Algorithms
..................................................................................3
Pseudocode
.............................................................................. 6
A Brief History of Programming
...................................................7
JavaScript
.............................................................................................. 8
The History of JavaScript
.................................................... 8
JavaScript Versions
.............................................................. 10
Hello, World! Your First JavaScript Program
........................ 11
The Console?
........................................................................... 11
JavaScript in the Browser
..............................................................13
The Structure of a Web Page
..........................................13
I Can Code a Rainbow
.....................................................................15
iv
Learn to Code with JavaScript
A Programmer’s Mindset
.............................................................. 18
Challenges
.......................................................................................... 19
Summary
.............................................................................................. 19
Chapter 2:
Programming Basics
....................21
Comments
........................................................................................... 22
Programming Grammar
................................................................ 23
Statements
.............................................................................. 23
Blocks
......................................................................................... 24
Whitespace
............................................................................. 25
Data Types
............................................................................... 25
What Type Are You?
............................................................ 27
Operators
..................................................................................28
Variables
...............................................................................................28
Declaring and Assigning Variables
..............................28
Constants
.................................................................................30
Assignment
...............................................................................31
Unde ned
................................................................................. 33
Naming Variables
................................................................. 33
Pop-up Interaction
.......................................................................... 35
Plik z chomika:
george.mouflon
Inne pliki z tego folderu:
Horstmann Cay - Big Java, Late Objects (Second Edition).pdf
(127846 KB)
Dean John, Dean Raymond - Introduction To Programming With Java. A Problem Solving Approach (Third Edition).pdf
(94924 KB)
Ackermann Philip - JavaScript, The Comprehensive Guide.epub
(20734 KB)
bin Uzayr Sufyan - Conquering JavaScript, Three.js.pdf
(11944 KB)
Horstmann Cay - Big Java, Early Objects (7th Edition).pdf
(44199 KB)
Inne foldery tego chomika:
Android
Art
Artificial Intelligence
Biology
C(++)
Zgłoś jeśli
naruszono regulamin