0% found this document useful (0 votes)
3 views4 pages

Javascript Notes

The document provides a brief overview of JavaScript basics, including how to print to the console, link JavaScript with HTML, and use shortcuts for HTML code. It explains the differences between variable declaration using 'var', 'let', and 'const', emphasizing that 'let' allows updates to variable values without redeclaration, while 'const' requires an initial assignment and prohibits changes. Additionally, it mentions that JavaScript is a dynamically typed language, allowing for flexible data type handling.
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)
3 views4 pages

Javascript Notes

The document provides a brief overview of JavaScript basics, including how to print to the console, link JavaScript with HTML, and use shortcuts for HTML code. It explains the differences between variable declaration using 'var', 'let', and 'const', emphasizing that 'let' allows updates to variable values without redeclaration, while 'const' requires an initial assignment and prohibits changes. Additionally, it mentions that JavaScript is a dynamically typed language, allowing for flexible data type handling.
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

1.

To print Anything we use following line:-


[Link](“Hello JavaScript”);

[Link] connect our Javascript code with browser we make a HTML file and link
it together.
[Link]+! :- for automatic short html code.

 variables and datatypes basic coading with variables.


 JS is dynamic type lang means value change dynamically new update is
apply quickly we don’t need to define which type of data type
In 2015 we was use var keyword to declare but as good programmer now
we don’t use it.

When we use VAR we declare our variable again and again in whole
[Link] our code is to much lengthy so this is not proper way assign
one variable name again and again.

Using let we cannot define same variable name [Link] we can update
value of that variable again and again.
 When we use “const” keyword we cant change the value of variable again
and cannot declared same variable again.
 And variable value must be assign when we use const.
 “typeof’’ is used to know the type of variable

You might also like