Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Learn JavaScript in 24 Hours
Learn JavaScript in 24 Hours
Learn JavaScript in 24 Hours
Ebook128 pages46 minutes

Learn JavaScript in 24 Hours

Rating: 3 out of 5 stars

3/5

()

Read preview

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

LanguageEnglish
PublisherPublishdrive
Release dateNov 12, 2021
Learn JavaScript in 24 Hours

Read more from Alex Nordeen

Related to Learn JavaScript in 24 Hours

Related ebooks

Programming For You

View More

Related articles

Reviews for Learn JavaScript in 24 Hours

Rating: 3 out of 5 stars
3/5

4 ratings2 reviews

What did you think?

Tap to rate

Review must be at least 10 words

  • Rating: 1 out of 5 stars
    1/5
    Does not show someone how to really write a javascript program.
  • Rating: 5 out of 5 stars
    5/5
    Nice, 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 JavaScript

The 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:

Enjoying the preview?
Page 1 of 1