0% found this document useful (0 votes)
26 views

Javascript Fundamentals v1

Javascript is an interpreted language that executes code line by line. It does not require explicit declaration of variable types, instead using the 'var' keyword. Javascript code needs a hosting environment like a web browser or Node.js to run, and best practices include declaring all variables at the top of the file and referencing external JS files before the closing body tag of an HTML page.

Uploaded by

Subba Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Javascript Fundamentals v1

Javascript is an interpreted language that executes code line by line. It does not require explicit declaration of variable types, instead using the 'var' keyword. Javascript code needs a hosting environment like a web browser or Node.js to run, and best practices include declaring all variables at the top of the file and referencing external JS files before the closing body tag of an HTML page.

Uploaded by

Subba Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Javascript Fundmentals

1. Javascript will be executed by an interpreter.


2. It executes line by line manner.
3. We will not specify the datatypes in javascript a simple ​‘var’ ​key word
is used to declare the variables.
4. We need an environment to host the javascript files. If we are working
with web application then the browser is going to load the js files.
5. If we are running on the ‘nodejs’ then the node will host the js files.

Best practices:
1. All the variable declarations must be part of line1.
2. Assignment of data should happen at appropriate location.
3. If we are referring the js file in the html then the user defined
javascript should be declared before closing the body tag.

You might also like