Learn JavaScript in 24 Hours
By Alex Nordeen
3/5
()
About this ebook
JavaScript is very fast, simple and integrate easily with other languages. It allows you to create highly responsive interfaces. This e-book is a gentler introduction to JavaScript. The real issues in learning JavaScript is either not understanding the basic concept clearly or overwhelmed by too much detailed learning resources.
To encounter these issues, this e-book is created. It is a small book but the content is well balanced and focuses only on core JavaScript Programming area. The benefit of this book is extended to all groups from beginners to expert levels. If you are a visual learner, this book can be a great aid. Each and every component of JavaScript like loops, variables, built-in data structures and functions are made interactive with images and examples. The code for each function can be executed step-wise, and the output can be checked in real time.
The book also shed some lights on OOPs concept to get a good grip over the language. Framework like AngularJS, Backbone, Bootstrap, etc. comes handy after referring to this book. You will be able to build a simple web app by the end of this book. Not every book has both minimum price range and maximum quality content.
Table of Content
Chapter 1: What is JavaScript?
Javascript History
How to Run JavaScript?
Chapter 2: Javascript Variables
Chapter 3: JavaScript Arrays
Chapter 4: For, While and Do While LOOP
for loop
while loop
do…while loop
Chapter 5: IF, Else, Else IF Conditional Statements
If statement
If…Else statement
If…Else If…Else statement
Chapter 6: Javascript Functions
Chapter 7: Cookies in JavaScript
Javascript Set Cookie
JavaScript get Cookie
JavaScript Delete Cookie
Chapter 8: JavaScript DOM
Chapter 9: Object Oriented JavaScript (OOJS)
Chapter 10: Internal & External JavaScript
What is Internal JavaScript?
What is External JavaScript?
Chapter 11: Practical Code Examples using JavaScript
Example#1: JavaScript Multiplication Table
Example#2: JS Forms Example:
Example#3: POPUP Message using Event:
Chapter 12: JavaScript Interview Questions & Answers
Read more from Alex Nordeen
Learn SAP SD in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP MM in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SQL in 24 Hours Rating: 5 out of 5 stars5/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Learn SAP Basis in 24 Hours Rating: 5 out of 5 stars5/5Learn Software Testing in 24 Hours Rating: 0 out of 5 stars0 ratingsLinux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn HANA in 24 Hours Rating: 5 out of 5 stars5/5Learn PMP in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Selenium in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Data Warehousing in 24 Hours Rating: 0 out of 5 stars0 ratingsBusiness Analysis : Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP HR in 24 Hours Rating: 5 out of 5 stars5/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsHacking : Guide to Computer Hacking and Penetration Testing Rating: 5 out of 5 stars5/5Learn MongoDB in 24 Hours Rating: 5 out of 5 stars5/5Learn PHP in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Operating System in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn AngularJS in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP BI in 24 Hours Rating: 3 out of 5 stars3/5Learn Excel in 24 Hours Rating: 4 out of 5 stars4/5Learn R Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn C Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsC# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Hadoop in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SQLite in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Design and Analysis of Algorithms in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Cassandra in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn JSP in 24 Hours Rating: 0 out of 5 stars0 ratings
Related to Learn JavaScript in 24 Hours
Related ebooks
Javascript For Beginners: Your Guide For Learning Javascript Programming in 24 Hours Rating: 3 out of 5 stars3/5JavaScript: Beginner's Guide to Programming Code with JavaScript Rating: 5 out of 5 stars5/5JavaScript Enlightenment Rating: 4 out of 5 stars4/5Mastering JavaScript Rating: 4 out of 5 stars4/5JavaScript and AJAX For Dummies Rating: 4 out of 5 stars4/5JavaScript: Beginner's Guide to Programming Code with JavaScript: JavaScript Computer Programming Rating: 0 out of 5 stars0 ratingsJavaScript Unlocked Rating: 5 out of 5 stars5/5JavaScript: Best Practices to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsJavaScript: Tips and Tricks to Programming Code with Javascript: JavaScript Computer Programming, #2 Rating: 0 out of 5 stars0 ratingsMastering JavaScript: The Complete Guide to JavaScript Mastery Rating: 5 out of 5 stars5/5Java: Programming: Your Step by Step Guide to Easily Learn Java in 7 Days Rating: 4 out of 5 stars4/5JavaScript: Tips and Tricks to Programming Code with Javascript Rating: 0 out of 5 stars0 ratingsJAVA for Beginner's Crash Course: Java for Beginners Guide to Program Java, jQuery, & Java Programming Rating: 4 out of 5 stars4/5Object-Oriented JavaScript - Third Edition Rating: 4 out of 5 stars4/5JavaScript: Advanced Guide to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsHTML5,CSS3,Javascript and JQuery Mobile Programming: Beginning to End Cross-Platform App Design Rating: 5 out of 5 stars5/5React: Building Modern Web Applications Rating: 5 out of 5 stars5/5Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications, and libraries Rating: 3 out of 5 stars3/5JavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsJavaScript : Object-Oriented Programming Rating: 0 out of 5 stars0 ratingsJavaScript Patterns JumpStart Guide (Clean up your JavaScript Code) Rating: 4 out of 5 stars4/5The PHP Workshop: Learn to build interactive applications and kickstart your career as a web developer Rating: 0 out of 5 stars0 ratingsComputer Programming: From Beginner to Badass—JavaScript, HTML, CSS, & SQL Rating: 3 out of 5 stars3/5100 Recipes for Programming Java Rating: 5 out of 5 stars5/5Make Bootstrap Themes Rating: 0 out of 5 stars0 ratingsJava Programming: 24-Hour Trainer Rating: 0 out of 5 stars0 ratingsJavaScript for the Business Developer Rating: 3 out of 5 stars3/5
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps 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/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Teach Yourself C++ Rating: 4 out of 5 stars4/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5
Reviews for Learn JavaScript in 24 Hours
4 ratings2 reviews
- Rating: 1 out of 5 stars1/5Does not show someone how to really write a javascript program.
- Rating: 5 out of 5 stars5/5Nice, clear and easy to understand. Thank you so much.
Book preview
Learn JavaScript in 24 Hours - Alex Nordeen
Learn JavaScript in 24 Hours
By Alex Nordeen
Copyright 2021 - All Rights Reserved – Alex Nordeen
ALL RIGHTS RESERVED. No part of this publication may be reproduced or transmitted in any form whatsoever, electronic, or mechanical, including photocopying, recording, or by any informational storage or retrieval system without express written, dated and signed permission from the author.
Table Of Content
Chapter 1: What is JavaScript?
Javascript History
How to Run JavaScript?
Chapter 2: Javascript Variables
Chapter 3: JavaScript Arrays
Chapter 4: For, While and Do While LOOP
for loop
while loop
do…while loop
Chapter 5: IF, Else, Else IF Conditional Statements
If statement
If…Else statement
If…Else If…Else statement
Chapter 6: Javascript Functions
Chapter 7: Cookies in JavaScript
Javascript Set Cookie
JavaScript get Cookie
JavaScript Delete Cookie
Chapter 8: JavaScript DOM
Chapter 9: Object Oriented JavaScript (OOJS)
Chapter 10: Internal & External JavaScript
What is Internal JavaScript?
What is External JavaScript?
Chapter 11: Practical Code Examples using JavaScript
Example#1: JavaScript Multiplication Table
Example#2: JS Forms Example:
Example#3: POPUP Message using Event:
Chapter 12: JavaScript Interview Questions & Answers
Chapter 1: What is JavaScript?
What is JavaScript?
JavaScript is a very powerful client-side scripting language. JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
Javascript History
JavaScript was developed by Brendan Eich in 1995, which appeared in Netscape, a popular browser of that time.
Introduction to JavaScriptThe language was initially called LiveScript and was later renamed JavaScript. There are many programmers who think that JavaScript and Java are the same. In fact, JavaScript and Java are very much unrelated. Java is a very complex programming language whereas JavaScript is only a scripting language. The syntax of JavaScript is mostly influenced by the programming language C.
How to Run JavaScript?
Being a scripting language, JavaScript cannot run on its own. In fact, the browser is responsible for running JavaScript code. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it is up to the browser to execute it. The main advantage of JavaScript is that all modern web browsers support JavaScript. So, you do not have to worry about whether your site visitor uses Internet Explorer, Google Chrome, Firefox or any other browser. JavaScript will be supported. Also, JavaScript runs on any operating system including Windows, Linux or Mac. Thus, JavaScript overcomes the main disadvantages of VBScript (Now deprecated) which is limited to just IE and Windows.
Tools You Need
To start with, you need a text editor to write your code and a browser to display the web pages you develop. You can use a text editor of your choice including Notepad++, Visual Studio Code, Sublime Text, Atom or any other text editor you are comfortable with. You can use any web browser including Google Chrome, Firefox, Microsoft Edge, Internet Explorer etc.
A Simple JavaScript Program
You should place all your JavaScript code within () if you are keeping your JavaScript code within the HTML document itself. This helps your browser distinguish your JavaScript code from the rest of the code. As there are other client-side scripting languages (Example: