• Complain

John Rhea - An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And

Here you can read online John Rhea - An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Undead Institute, genre: Humor. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

John Rhea An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And
  • Book:
    An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And
  • Author:
  • Publisher:
    Undead Institute
  • Genre:
  • Year:
    2021
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Start taking down the zombie horde with rapid fire web development programs. This book introduces you to JavaScript and a wide variety of beginner programming topics like variables, conditional statements, loops and functions.
Youll understand the different types of variables available to you and how to create and utilize them for maximum damage to the undead.
Well discuss conditional statements (if/then statements) and talk about how to execute different code depending on whether something is true or not such as Theres a zombie gnawing on your head!
Well loop-dee-loop around the horde as we define and demonstrate the three kinds of JavaScript loops.
And finally, using functions and reusable code, well land sucker punch after sucker punch after sucker punch on every zombie shuffling toward you.
While this book presents these concepts using JavaScript syntax and information, nearly all of the concepts are universal to programming languages everywhere.
So come along for a jaunt through the apocalypse and stock your armory with plenty of programming tools and JavaScript finery. Next stop ending the apocalypse!
How Youll Learn to Smack Zombies Around
You wont just passively take in the view, like a zombie shuffling across the mainland. Youll have plenty of combat practice with analogies, examples, and code tutorials you can build, break and fix again. Working with your hands and your head youll craft code that pleases the eye and knocks a zombie into last Tuesday.
All the code and directions are provided as both codepen tutorials and downloadable html files, so you can fight the apocalypse how and where you like. You can work with them on the codepen site or on your own device.
And later youll bring those skills together in a final project that cements those skills into zombie smashing muscle memory.
Why Zombies?
Are zombies just a gimmick? Why would this be any better than a straight laced book that sticks to the facts?
Straight laced books are often straight boring. And if you have insomnia problems go buy that book. The author, John, has read the boring books and knows that staying awake and engaged are also important for learning. But this book uses zombie references and analogies not just to make you smile, but to help the material stick. If a tough technical concept is related in silly terms you understand, like a zombie trying to buy gum at a super market, its much more likely to stay in that brain those zombies are intent on eating.
Is this book for me?
We at the undead institute believe that getting braaains should be fun. While our definition of fun typically involves silly jokes, zombie references and learning ways to build great websites, not everyone agrees. If youre looking for straight technical explanations without any wit or whimsy (or zombies) then these books probably arent for you. If you have an enormous technical background and no time for humor or apocalyptic analogies, then move along. Theres nothing for you to see here.
But if you like a good (or sometimes bad) joke, if you have little to no technical background or inclination but want to learn HTML, CSS and more, or if youre a technology pro and prefer a spoonful of fun with your web development (zombie antidote) medicine, then these books were written for you, and these books will help you reach your web development goals.

John Rhea: author's other books


Who wrote An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And? Find out the surname, the name of the author of the book and a list of all author's works by series.

An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
  1. Front Matter

Copyright 2020 by John Rhea. This book is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

Distributed by the Undead Institute a division of StoryLab LLC


This book made possible by a generous grant from Grant for the Web.

You Know What Else Kills Zombies?

Honest feedback. Enjoyed the book? Found an error or an omission? Still confused about something? Want to complement the authors sense of humor (or lack thereof)? Email John directly at

Find More Zombified Web Development at

https://undead.institute

Four Word

Stop those zombie cowboys!

Content Warning
(for Silliness)

This book contains a large amount of information, zombies, silliness, and a sense of humor that some would call terrible. If youre looking for straight technical information or a cure to your insomnia, this is not the book for you.

If youre looking for a book thats accessible to those without technical training or inclination and/or dont mind laughing a bit while youre learning, this book is for you. We at the Undead Institute believe that getting braaains should be fun. Join us and lets stop those smelly zombies once and for all! (No, seriously. Their breath is terrible.)

Get a Free Apocalyptic JavaScript-ic Cheat Sheet
When you sign up for Webpocalypse Weekly our email newsletter This printable - photo 1

When you sign up for Webpocalypse Weekly, our email newsletter. This printable cheat sheet covers JavaScript loops, variable, conditionals and functions. Write JavaScript easily with your very own Apocalyptic Javascript-ic Cheat Sheet

https://undd.link/intro2js

An Introduction to Programming in JavaScript:
Stomping Zombies with Variables, Loops, Functions and More

by John Rhea

Published by The Undead Institute

Hello Human Resistance Cell

JavaScript differs from other front-end web languages, such as HTML and CSS. Its much more programmatic and uses logic and variables and functions and loops and all kinds of thingsbut dont fear for your mind as though a zombie were hot on your trail. Well walk you through everything and get you up to speed, even if this is your first taste of JavaScript and/or of a more traditional programming language.

This book assumes a small amount of HTML/web page knowledge. If you have none, you can get what you'd need from our free book Punching Zombies: An HTML & CSS Quick Start Guide for Writers, Designers, and Beginners

Buckets and Buckets of Zombie Guts

One of the first things to understand is a concept called variables. Variables are like buckets you store things in. You can put water in a bucket or your lunch or a mannequin head or the rookie cards of the 2037 Los Angeles Zombie-Dodgers Human Resistance Cell. You can put just about anything in a bucket.

There are also lots of different JavaScripty types of things you can put in a bucket, such as:

Numbers: These are what you think they are.

Strings of Letters (Strings): These are actually more than just lettersthey are any text or character that you want to treat as a single thing. Enclose strings in quotation marks (both single and double quotes work in JavaScript) and can include any valid character. Examples of strings are:

Hello Post-Apocalyptic World

Or,

Dont look at me, Norm. The zombie pulled your lunch out of the fridge and ate it.

Or,

I know you labeled it. The zombie didnt care or couldnt read.

Or,

Only one way to find out. Hes over there eating 7 other lunches.

Or,

7?

Or,

So you can have number characters in a string too, but theyll behave as strings and not as numbersso you cant add or multiply them without converting them back to numbers. If something is in quotes, its a string.

Boolean: The value is true or false and cant be anything else. This makes it great for using it like a switch to turn something on or off.

There are a few more types of variables in JavaScript, but this is enough to get us started.

Buckets of Type Z

Some buckets can only hold one type of thing. For instance, a bucket with a hole in the bottom wouldnt hold water or the soda from the last working soda fountain in North America, but it could be great for holding books or large rocks or the personal effects of your zombified roommate. Similarly, variables often only hold one type of thing.

In some programming languages, putting the wrong type of content in the wrong bucket can cause errors, but JavaScript is forgiving. The positive side of that is that JavaScript just handles a lot of stuff without complaining. The negative is that if it messes up or handles something different from what you expect, you can get weird results or programming bugs that are hard to track down.

Night of the Living TipOne common place these types of bugs happen is when you - photo 2
Night of the Living Tip:
One common place these types of bugs happen is when you try to add a number (2) and a string that looks like a number (2). In JavaScript, 2 + 2 is 22. Since one of these is a string, it casts/treats the other as a string too and puts them together or concatenates them. (This can be very useful when you need to construct a message for the user.) Thus, be careful that you are adding numbers with numbers and not strings.
Variable Bucket Contents

These buckets weve been talking about are called variables. Theyre called variables because they areahemvariable. You can put something in them, and, during your program, you can take that out and look at it or take it out and do something with it or take it out and put something else in. You can do that any number of times.

Before we can use these buckets/variables to beat back the zombie hordes, we have to name them. We can name a variable just about anything we want. However, we can only use letters, numbers, and underscores. We cant use any other characters, and the first character cant be a numberi.e., 7zombies is invalid, but sevenzombies or _7zombies or zombies_numbering_7 would all work just fine.

Also, variables are case sensitive, so a variable of zombie is different from a variable of Zombie, which is also different from a variable named ZOMBIE, which is different from zOmBiEso watch which case you use, and use that case throughout your code.

Night of the Living Tip We can use this to our advantage with camel case - photo 3
Night of the Living Tip:

We can use this to our advantage with camel case. Camel case makes multi-word variable names much easier to read and understand. In camel case, you write the first word in all lower case, and then capitalize the first letter of each additional word. Here are some examples:

sevenZombies sevenFormerHumans thatGuyFromAccountingWhoTurnedZombie dawnOfTheDeadFromSales rickTheUndeadHarbingerOfDoom

The last rule for variable names is that you cant use any of JavaScripts reserved wordsmeaning the words that have special meaning to JavaScript and are how the language functions. If HTML had variables, itd be like naming your bucket

. It would be hard for the browser to understand when you meant the p tag and when you meant the variable/bucket, as youd given both the same name.

Now how do you declare a variable in JavaScript? There are three ways: var, let, and const. (These would be examples of reserved words that cannot be variable/bucket names.)

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And»

Look at similar books to An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And»

Discussion, reviews of the book An Introduction to Programming in Javascript: Stomping Zombies With Variables, Loops, Functions And and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.