[Go to site: main page, start]

0% found this document useful (0 votes)
2 views2 pages

Java Script Lessons

The document provides an overview of JavaScript, highlighting its flexibility in writing code without strict structure. It explains key concepts such as strings, variables, and the dynamic typing of variables, along with best practices for declaring variables. Additionally, it lists characteristics of JavaScript, including its high-level nature, lightweight design, and multi-paradigm capabilities.

Uploaded by

Critter_Varmint
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Java Script Lessons

The document provides an overview of JavaScript, highlighting its flexibility in writing code without strict structure. It explains key concepts such as strings, variables, and the dynamic typing of variables, along with best practices for declaring variables. Additionally, it lists characteristics of JavaScript, including its high-level nature, lightweight design, and multi-paradigm capabilities.

Uploaded by

Critter_Varmint
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java Script Lessons

No Structure in Javascript write as you like

If you want to write a message just do [Link]

If you want to declare something just declare

If you want to initialize something just initialize

If you want to declare and initialize you can do that as well

//single line comment

/*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut convallis gravida congue. Donec nec
metus quis nulla lobortis ornare semper et nisi. Sed non scelerisque quam. Etiam tempus, enim id.

multi line comment */

String : anything that is enclosed in single or double quotes written in JS is string

Variable : variable is like a container in which we can store values, it can be a number value or a
string value

Javascript has dynamically typed variables which means the value assigned to variable can change its
datatype bases on the value provided

Good habit to type variable is by typing “let” let x = 10 (we can also write simply x = 10 but that is
good practice)

Js variable names are case sensitive therefore, naming must be carefully done
What is JavaScript?
 High level
 Light Weighted
 JIT compiled
 Multi-Paradigm
 Prototype Based
 Synchronous
 Single Threaded
 Dynamic Language

You might also like