• Complain

Marcus - JavaScript Simplified: JavaScript Simplified And Turned To Fun

Here you can read online Marcus - JavaScript Simplified: JavaScript Simplified And Turned To Fun 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, genre: Home and family. 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.

No cover
  • Book:
    JavaScript Simplified: JavaScript Simplified And Turned To Fun
  • Author:
  • Genre:
  • Year:
    2021
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

JavaScript Simplified: JavaScript Simplified And Turned To Fun: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "JavaScript Simplified: JavaScript Simplified And Turned To Fun" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

JavaScript Simplified: JavaScript Simplified And Turned To Fun — 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 "JavaScript Simplified: JavaScript Simplified And Turned To Fun" 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
Copyright 2021 O. A. Marcus All rights reserved
No part of this book may be reproduced, or stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without express written permission of the publisher.
ISBN: 9798704820246
Cover design by: Niflare
Table of Content
Introduction to JavaScript
JavaScript is a programming language used to make interactive webpages .
JavaScripts main motto is to make it move .
JavaScript is like Oxygen. It gives life to the web page and hence fascinates us with the wonderful interactions .
JavaScript is responsible for all the cool animations that keeps us engaged on the web pages .
If you've ever checked a live score of football match, JavaScript is probably running through it.
JavaScript is everywhere.
JavaScript is the most universal language in the world.
The beauty of JavaScript is that you can build anything (not literally) with it.
Heres the list of things, we can build with JavaScript...
  • JavaScript is used to create interactive web pages for both Desktop and Mobile applications.
  • JavaScript is used to create mobile applications which we use every day.
  • We can also create iOS and Android applications with it.
  • JavaScript is also used to create full-fledged Desktop applications.
JavaScript is used by Google, Facebook, Microsoft, Uber and every other company you could think of!
Knowingly or unknowingly weve used their services and hence weve utilized JavaScript.
What is a computer program?
Computers are just boxes that blindly follow instructions .
But, unlike humans, they follow the instructions accurately .
If your mother asks you to add 2 onions to the grocery list, theres a high possibility of you forgetting to bring the onions.
Unlike us, computers remember everything.
As we discussed, computers follow a set of instructions and perform tasks accordingly.
If we take the previous example, your mother had given you instructions about what all to add in the grocery list.
So those set of instructions are nothing but computer programs.
Computer program is a set of instructions that a computer follows to complete a task.
Lets start by commanding the computer to print Hello World.
So can you guess how we will be going about this?
We will start by providing the required instructions to the computer to print Hello World.
We are going to write those instructions in a language that the computer understands.
Printing text
The command to print text in JavaScript is:
This command tells the computer to write print something on a document ie a - photo 1
This command tells the computer to write (print) something on a document i.e. a web page.
But this command is incomplete without few special characters.
Lets go ahead and add them.
Round Brackets' ()' tells the computer to separate the command from the text that is to be printed.
Lets add Round Brackets to our command.
Double quotes are added to instruct the computer about which part is to - photo 2
Double quotes (" ") are added to instruct the computer about which part is to be printed.
Lets add Double Quotes to our command along with Hello World.
Semicolon indicates the end of a command and hence is added after every - photo 3
Semicolon indicates the end of a command and hence is added after every command. This is our command:
The result of the above command will be Hello world Storing a value - photo 4
The result of the above command will be:
Hello world
Storing a value
Previously, we learned how to command the computer to print something.
Now, lets dive deeper and learn how to store values in JavaScript .
Imagine yourself as a scientist in a chemistry lab.
So if you look around the lab, youll find several cylinders.
Each cylinder contains different types of gases, starting from Oxygen to Nitrogen.
But how do we differentiate which cylinder contains which gas?
To solve that problem, we get it labeled with the gas name on it.
Similarly, if we want to store some information, we store it in our memory. And weve all the information labeled in order to avoid confusion. If someone asks our age, we dont tell them our grandfathers name.
Do we? Definitely no!
In Programming, this storing container is called Variable.
So, variables are containers which store values.
We place values in these containers and then use those values by referring to the containers name.
Storing a string
Lets say we want to print Niflare
Dont you think thats a lot of writing Instead lets use a variable to save our - photo 5
Dont you think thats a lot of writing??
Instead lets use a variable to save our energy.
In JavaScript, creating a variable is called declaring a variable.
Every programming language has their set of reserved names which are called keywords .
Variables are declared with the var keyword followed by an equal to (=) and the value .
Lets go ahead and save the word Niflare in a variable x.
Dont forget to close the statement with a semicolon Now if we want to print - photo 6
Dont forget to close the statement with a semicolon ;.
Now, if we want to print the word twice, we can do it in the following manner:
Ps Theres a better a way to write less code to perform the same task which - photo 7
Ps: Theres a better a way to write less code to perform the same task, which well learn soon.
So, words are called Strings in programming language. Hope you remember it, we will use this name a lot.
Strings are sequences of alphanumeric characters.
String values are always written with quotations ().
Storing Boolean Value
In life, weve to make several decisions.
But all of that comes down to two options, i.e. yes or no, which in programming terms is referred to as true or false .
This true or false is called Boolean values .
A Boolean value is declared in the following way:
Few points to keep in mind while creating a variable with a Boolean value - photo 8
Few points to keep in mind while creating a variable with a Boolean value:
Boolean represents either true or false .
Boolean is always defined without quotations .
If you remember double quotations are used to declare Strings Hence we dont - photo 9
If you remember, double quotations are used to declare Strings .
Hence we dont use double quotations while creating a variable with Boolean values.
Storing a number
Lets say we want to store our age in a variable and print it.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «JavaScript Simplified: JavaScript Simplified And Turned To Fun»

Look at similar books to JavaScript Simplified: JavaScript Simplified And Turned To Fun. 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 «JavaScript Simplified: JavaScript Simplified And Turned To Fun»

Discussion, reviews of the book JavaScript Simplified: JavaScript Simplified And Turned To Fun 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.