About this ebook
Related to The Little Book of Javascript
Related ebooks
Just the basics of JavaScript Rating: 0 out of 5 stars0 ratingsLearning JavaScript Data Structures and Algorithms Rating: 5 out of 5 stars5/5Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained Rating: 0 out of 5 stars0 ratingsBeyond the Basics of JavaScript Rating: 0 out of 5 stars0 ratingsWeb Coding & Development All-in-One For Dummies Rating: 1 out of 5 stars1/5JavaScript. Rating: 0 out of 5 stars0 ratingsJames Learning Javascript Programming Rating: 0 out of 5 stars0 ratingsJavaScript: Advanced Guide to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsJavaScript: Advanced Guide to Programming Code with Javascript: JavaScript Computer Programming, #4 Rating: 0 out of 5 stars0 ratingsProgramming Language Concepts: Improving your Software Development Skills Rating: 0 out of 5 stars0 ratingsJavascript - 50 functions and tutorial Rating: 4 out of 5 stars4/5JavaScript: Beginner's Guide to Programming Code with JavaScript: JavaScript Computer Programming Rating: 0 out of 5 stars0 ratings120 Advanced JavaScript Interview Questions Rating: 0 out of 5 stars0 ratingsJavaScript OOP Step by Step: A Practical Guide with Examples Rating: 0 out of 5 stars0 ratingsJavaScript Introduction Rating: 0 out of 5 stars0 ratingsThe Ultimate Guide to Mastering JavaScript: A Beginner's Journey Rating: 0 out of 5 stars0 ratingsJavaScript & Vue.js: A Match Made in Heaven Rating: 0 out of 5 stars0 ratingsGROKKING ALGORITHMS: Tips and Tricks of Grokking Functional Programming Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsQuick Start Basic HTML and JavaScript Rating: 0 out of 5 stars0 ratingsThe Joy of JavaScript With a Side of Vue.js Rating: 0 out of 5 stars0 ratingsJavaScript Data Structures Explained: A Practical Guide with Examples Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsIan Talks JS A-Z: WebDevAtoZ, #1 Rating: 0 out of 5 stars0 ratingsJavaScript Functional Programming Made Simple: A Practical Guide with Examples Rating: 0 out of 5 stars0 ratingsTeach Yourself Programming The Guide to Programming & Coding Like a Professional Rating: 0 out of 5 stars0 ratings
Computers For You
The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5The Self-Taught Computer Scientist: The Beginner's Guide to Data Structures & Algorithms Rating: 0 out of 5 stars0 ratingsStorytelling with Data: Let's Practice! Rating: 4 out of 5 stars4/5UX/UI Design Playbook Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Elon Musk Rating: 4 out of 5 stars4/5Get Into UX: A foolproof guide to getting your first user experience job Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution Rating: 4 out of 5 stars4/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5Mindhacker: 60 Tips, Tricks, and Games to Take Your Mind to the Next Level Rating: 4 out of 5 stars4/5Fundamentals of Programming: Using Python Rating: 5 out of 5 stars5/5CompTIA Security+ Get Certified Get Ahead: SY0-701 Study Guide Rating: 5 out of 5 stars5/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsProcreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 5 out of 5 stars5/5Becoming a Data Head: How to Think, Speak, and Understand Data Science, Statistics, and Machine Learning Rating: 5 out of 5 stars5/5Learning the Chess Openings Rating: 5 out of 5 stars5/52022 Adobe® Premiere Pro Guide For Filmmakers and YouTubers Rating: 5 out of 5 stars5/5Algorithms For Dummies Rating: 4 out of 5 stars4/5GPT Chat in Action: How to Solve Everyday Problems with Artificial Intelligence Rating: 3 out of 5 stars3/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5Quantum Computing For Dummies Rating: 3 out of 5 stars3/5A Quickstart Guide To Becoming A ChatGPT Millionaire: The ChatGPT Book For Beginners (Lazy Money Series®) Rating: 4 out of 5 stars4/5
Reviews for The Little Book of Javascript
0 ratings0 reviews
Book preview
The Little Book of Javascript - Karl Agius
The Little Book of JavaScript
Copyright © 2014 by Karl Agius
All rights reserved. This book or any portion thereof may not be reproduced or used in any manner whatsoever without the express written permission of the publisher except for the use of brief quotations in a book review or scholarly journal.
First Printing: 2014
ISBN 978-1-312-52049-3
www.karlagius.com
About this book
It has been almost two decades since I first taught myself JavaScript, mostly by reading through the source on any internet page which struck me as interesting. The language, and the industry’s attitude to it, has changed significantly in this span of time.
From a ‘toy’ language used to open annoying popups and changing the colour of things, JavaScript is now being used to build substantial, even mission critical applications. With Node.js, it is even finding its way onto the server side, which can only be described as an excellent thing.
JavaScript skills are valuable, and given the direction that the industry is headed in, one can assume that they’re going to become more so in time. However, there seems to be a knowledge gap which I often encounter when working with new developers who have only been exposed to JavaScript through the filter of a framework. A gap which sometimes leaves them stuck or confused as they are missing some concepts which the framework designers reasonably assumed they would know.
The frameworks and tools available today are fantastic in terms of getting things done. Speaking for myself, I don’t think I’ve written any non-trivial applications without using a framework in ages, and I am certainly not advocating getting rid of them. On the contrary, I believe that understanding what goes on beneath the frameworks helps coders get more power out of them.
This book is for average developers who already have some knowledge of coding, but little experience in using raw JavaScript. Old hands – anyone who’s been exposed to the language before jQuery and other frameworks burst onto the scene – will most likely know most of the things described here inside out.
For everyone else, I hope that the information presented here will prove useful in your projects.
Some basics
To begin with, we are going to go over some very basic concepts. Chances are that you’ve already used most of them at some point, perhaps without even knowing it. Or maybe you’re aware of them but not in depth.
Either way we’re going to take a closer look at them, because while they look simple, there’s the scope for them to cause all kinds of shenanigans by stopping your scripts from working (bad) or making your scripts work almost,