The Little Book of Javascript
By Karl Agius
()
About this ebook
Read more from Karl Agius
Managing Visitor Experiences in Nature-based Tourism Rating: 0 out of 5 stars0 ratingsIslandscapes and Tourism: An Anthology Rating: 0 out of 5 stars0 ratings
Related to The Little Book of Javascript
Related ebooks
JavaScript Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 0 out of 5 stars0 ratingsIntermediate Load Runner With Oracle/Apex Concepts. Rating: 0 out of 5 stars0 ratingsLearn Angular: Build a Todo App Rating: 0 out of 5 stars0 ratingsJavascript - 50 functions and tutorial Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsSvelte: A Beginner's Guide Rating: 0 out of 5 stars0 ratingsJavaScript: Tips and Tricks to Programming Code with Javascript Rating: 0 out of 5 stars0 ratingsJavaScript for the Business Developer Rating: 3 out of 5 stars3/5JavaScript: Tips and Tricks to Programming Code with Javascript: JavaScript Computer Programming, #2 Rating: 0 out of 5 stars0 ratingsJavaScript: Advanced Guide to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsEmber.js in Action Rating: 0 out of 5 stars0 ratingsAlfresco 3 Cookbook Rating: 0 out of 5 stars0 ratingsNginx Troubleshooting Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsRESTful A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsInstant Play Framework Starter Rating: 0 out of 5 stars0 ratingsInstant Node Package Manager Rating: 2 out of 5 stars2/5GitHub A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsProgressive web app A Clear and Concise Reference Rating: 0 out of 5 stars0 ratingsMockito Cookbook Rating: 0 out of 5 stars0 ratingsLearning Heroku Postgres Rating: 0 out of 5 stars0 ratingsJava servlet Second Edition Rating: 0 out of 5 stars0 ratingsJSTL: Practical Guide for JSP Programmers Rating: 3 out of 5 stars3/5Heroku Cloud Application Development Rating: 0 out of 5 stars0 ratingsRestlet in Action: Developing RESTful web APIs in Java Rating: 0 out of 5 stars0 ratingsSoftware architecture A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsAutomating Software Tests Using Selenium Rating: 0 out of 5 stars0 ratingsAJAX Interview Questions, Answers, and Explanations: AJAX Certification Review Rating: 0 out of 5 stars0 ratingsDrupal Multimedia Rating: 4 out of 5 stars4/5
Computers For You
The Invisible Rainbow: A History of Electricity and Life Rating: 4 out of 5 stars4/5Elon Musk Rating: 4 out of 5 stars4/5Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Practical Lock Picking: A Physical Penetration Tester's Training Guide Rating: 5 out of 5 stars5/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsThe Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5Master Builder Roblox: The Essential Guide 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/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,