This document provides an overview of JavaScript including:
- JavaScript is an interpreted programming language that allows adding interactivity to HTML pages.
- It is commonly used for client-side scripting of web pages in browsers.
- Core JavaScript concepts like variables, data types, operators, and functions are introduced.
- Different types of loops in JavaScript like for, for/in, while and do/while loops are explained.
- Best practices for including JavaScript code in HTML files using <script> tags are covered.
This document provides notes on web programming unit 2 prepared by Bhavsingh Maloth. It discusses the history and objectives of JavaScript, defining it as a scripting language used to add interactivity to HTML pages. JavaScript can be divided into core, client-side, and server-side components. Core JavaScript is the basic language, while client-side JavaScript supports browser controls and user interactions. The document also discusses how JavaScript code is embedded in HTML and provides examples of writing text and using variables in JavaScript.
This document provides notes on web programming unit 2 prepared by Bhavsingh Maloth. It discusses the history and objectives of JavaScript, defining it as a scripting language used to add interactivity to HTML pages. JavaScript can be divided into core, client-side, and server-side components. Core JavaScript is the basis of the language, while client-side JavaScript supports browser controls and user interactions. Server-side JavaScript makes the language useful on web servers. The document also provides examples of how to write text, insert scripts, and use variables in JavaScript.
JavaScript New Tutorial Class XI and XII.pptxrish15r890
The document provides an introduction to JavaScript including:
- JavaScript was developed by Branden Eich in 1995 and is a lightweight, interpreted programming language designed for creating network-centric applications.
- JavaScript is dynamic and commonly used for client-side scripting to interact with users and make dynamic web pages. It has object-oriented capabilities.
- The document discusses JavaScript variables, data types, comments, and keywords as well as uses like client-side validation, manipulating HTML, and presentations.
JavaScript is a scripting language used to make web pages interactive. It allows client-side code to interact with users and dynamically update pages. JavaScript can be used to add interactivity to websites through features like dropdown menus, alerts, and animations. It is commonly used by placing <script> tags in HTML pages and can also be linked via external .js files. JavaScript has many operators for arithmetic, comparison, logical, and bitwise operations that allow it to manipulate variables and values.
Apxic Technologies is the best institute to learn programming languages like JavaScript. We have years of experience in teaching and we provide 100% job-oriented training. Book your demo class now : 7497897720
This document provides information about Java and JavaScript by comparing and contrasting the two programming languages. It discusses that Java is a compiled programming language that can be used to create both web browser applications and standalone applications, while JavaScript is an interpreted scripting language that runs within web browsers. The document also explains what JavaScript can do, such as manipulate HTML, react to user events, and validate form data. It provides examples of basic JavaScript code and how it can be used with HTML forms.
JavaScript is a scripting language that can be used to make web pages interactive. It allows you to check and modify HTML forms, change images, and write dynamic content. JavaScript code is executed by the browser and only affects the current page. The language is case sensitive, lightweight, and interpreted rather than compiled. Variables, literals, objects, operators, control structures, and functions are the basic components of JavaScript code. Comments can be added to explain code. JavaScript code can be embedded directly in HTML pages or linked via external .js files. Code placement in the head or body affects when it runs.
This document provides an introduction to JavaScript by explaining what it is, how it differs from Java, how it works within web browsers to make pages interactive, and some common uses of JavaScript including form validation and manipulating HTML elements. It discusses how JavaScript code is embedded in HTML pages and executed on the client-side, and provides some simple examples of JavaScript statements and using JavaScript with HTML forms.
This document discusses the basic syntax and structure of JavaScript code. It covers:
- Using <script> tags to embed JavaScript code in an HTML document
- Common attributes of the <script> tag like "language" and "type"
- An example "Hello World" JavaScript program
- How whitespace, line breaks, and semicolons work in JavaScript
- JavaScript is case-sensitive
- Different styles of comments in JavaScript like //, /* */, and <!-- //-->
The document provides information about JavaScript including:
- JavaScript is a scripting language that adds interactivity to HTML pages and is used for client-side scripting.
- It can dynamically update HTML content, react to user events, validate form data, and detect the visitor's browser.
- JavaScript code can be embedded directly in HTML pages or placed in external .js files and included using script tags.
- The document discusses JavaScript variables, data types, operators, functions, and common uses of JavaScript in web pages.
JavaScript is a lightweight, interpreted programming language used for building interactive effects into web pages. It allows for validation of user input in the browser before form submission to reduce server loads. JavaScript also enables dynamic updating of page content without reloading, through features like hover interactivity. While useful for client-side scripts, JavaScript has limitations like inability to access files and lacks multi-threading. Popular development tools for JavaScript include Microsoft FrontPage, Dreamweaver, and HomeSite.
JavaScript is a programming language used to make web pages interactive. It allows calculations, form validation, games and other effects to be added to web pages. JavaScript code runs in the user's browser and works on any platform with a JavaScript-capable browser. Events like clicks or page loads can trigger JavaScript functions. JavaScript can be embedded directly in HTML pages or linked from external files and is commonly used to enhance user experience on websites.
Learn web designing course Bangalore.Infocampus is provide best web designing course,classes and free demo classes 4 days, less fee and 100% job placement assistance. My trainer has 10+ years experience in this field.
Best web designing courses in marathahalli
Contact: 9738001024…for more details
Enquire on our website-www.infocampus.co.in
The document provides an introduction to JavaScript including definitions of scripting, client-side scripting, and server-side scripting. It discusses how JavaScript code can be placed in HTML files using <script> tags and describes common JavaScript elements like variables, data types, operators, and code structure.
This document provides an overview of JavaScript. It discusses that JavaScript is an object scripting language used to create dynamic online content. It can be used by HTML authors to dynamically script page behavior on both the client-side and server-side. The document then covers basic JavaScript structures like using the <SCRIPT> tag to embed scripts in HTML and external scripts. It also discusses data types in JavaScript, variable declaration, and other syntax conventions.
The document provides an overview of JavaScript, describing it as a lightweight, interpreted programming language used for creating network-centric applications that is integrated with HTML and Java. It discusses how JavaScript allows for client-side scripting to interact with users and make dynamic web pages. The document also covers JavaScript data types, variables, scopes, naming conventions, and special number values. It provides examples of how to write strings, scripts, and declare variables in JavaScript.
1) The document discusses JavaScript and how it can be used to enhance web pages.
2) JavaScript code is written within HTML pages using <script> tags and can reference built-in browser objects like document to manipulate the page.
3) JavaScript supports variables, arrays, functions, and basic programming constructs like if/else statements and loops. While not fully object-oriented, it allows the creation and manipulation of objects.
1) The document discusses JavaScript and how it can be used to enhance web pages.
2) JavaScript code is written within HTML documents using <script> tags and can reference built-in browser objects like document.
3) JavaScript supports variables, arrays, functions, conditional statements, and loops to add interactivity to web pages.
- JavaScript is a lightweight, interpreted programming language designed for creating network-centric applications. It is complementary to and integrated with HTML and Java.
- JavaScript is widely used for client-side validation, manipulating HTML pages, user notifications, and back-end data loading to provide dynamic and interactive features to web pages.
- Popular JavaScript frameworks include jQuery, Angular, React, and Node.js which is used to build fast and scalable network applications and web servers.
It is a JavaScript programming language e book which help you to boost up your Basic Concept and Help you to in hacking respect to Cross-Site Scripting Attack.
This document provides an overview of JavaScript, including:
- JavaScript can run in browsers without needing Java and is used for client-side scripting. It allows dynamic interactions with web pages.
- JavaScript code can be included inline, embedded in <script> tags, or linked externally from .js files. External is preferred for maintenance.
- Variables, data types, operators, and control structures are explained. Objects are collections of properties and methods.
- Client-side scripting benefits include offloading processing to clients and faster responses to user events. Disadvantages include lack of JavaScript support and cross-browser inconsistencies.
- AJAX made JavaScript more important by enabling asynchronous data requests without blocking the browser.
JavaScript is a scripting language that allows adding interactivity to HTML pages. It can be used for client-side form validation and integration with user plugins. JavaScript is case-sensitive and allows variables, functions, conditional statements, and objects. Common uses include pop-up boxes, event handling, and cookies.
This document provides an overview of JavaScript for students. It defines JavaScript, explains why and how it is used, and covers basic JavaScript concepts like comments, functions, and events. Some key points:
- JavaScript is a scripting language commonly used for web development to make pages dynamic and interactive. It runs in the browser rather than on servers.
- JavaScript can be used to validate forms, change content, hide/show elements, and more. Popular uses include adding interactivity to websites and building front-end frameworks.
- Code is inserted between <script> tags and can be placed in HTML <head> or <body>. Functions are blocks of reusable code defined with function keywords.
- Events
Contact Lens:::: An Overview.pptx.: OptometryMushahidRaza8
A comprehensive guide for Optometry students: understanding in easy launguage of contact lens.
Don't forget to like,share and comments if you found it useful!.
Ad
More Related Content
Similar to JS-Slides_for_begineers_javascript-1.ppt (20)
JavaScript is a scripting language that can be used to make web pages interactive. It allows you to check and modify HTML forms, change images, and write dynamic content. JavaScript code is executed by the browser and only affects the current page. The language is case sensitive, lightweight, and interpreted rather than compiled. Variables, literals, objects, operators, control structures, and functions are the basic components of JavaScript code. Comments can be added to explain code. JavaScript code can be embedded directly in HTML pages or linked via external .js files. Code placement in the head or body affects when it runs.
This document provides an introduction to JavaScript by explaining what it is, how it differs from Java, how it works within web browsers to make pages interactive, and some common uses of JavaScript including form validation and manipulating HTML elements. It discusses how JavaScript code is embedded in HTML pages and executed on the client-side, and provides some simple examples of JavaScript statements and using JavaScript with HTML forms.
This document discusses the basic syntax and structure of JavaScript code. It covers:
- Using <script> tags to embed JavaScript code in an HTML document
- Common attributes of the <script> tag like "language" and "type"
- An example "Hello World" JavaScript program
- How whitespace, line breaks, and semicolons work in JavaScript
- JavaScript is case-sensitive
- Different styles of comments in JavaScript like //, /* */, and <!-- //-->
The document provides information about JavaScript including:
- JavaScript is a scripting language that adds interactivity to HTML pages and is used for client-side scripting.
- It can dynamically update HTML content, react to user events, validate form data, and detect the visitor's browser.
- JavaScript code can be embedded directly in HTML pages or placed in external .js files and included using script tags.
- The document discusses JavaScript variables, data types, operators, functions, and common uses of JavaScript in web pages.
JavaScript is a lightweight, interpreted programming language used for building interactive effects into web pages. It allows for validation of user input in the browser before form submission to reduce server loads. JavaScript also enables dynamic updating of page content without reloading, through features like hover interactivity. While useful for client-side scripts, JavaScript has limitations like inability to access files and lacks multi-threading. Popular development tools for JavaScript include Microsoft FrontPage, Dreamweaver, and HomeSite.
JavaScript is a programming language used to make web pages interactive. It allows calculations, form validation, games and other effects to be added to web pages. JavaScript code runs in the user's browser and works on any platform with a JavaScript-capable browser. Events like clicks or page loads can trigger JavaScript functions. JavaScript can be embedded directly in HTML pages or linked from external files and is commonly used to enhance user experience on websites.
Learn web designing course Bangalore.Infocampus is provide best web designing course,classes and free demo classes 4 days, less fee and 100% job placement assistance. My trainer has 10+ years experience in this field.
Best web designing courses in marathahalli
Contact: 9738001024…for more details
Enquire on our website-www.infocampus.co.in
The document provides an introduction to JavaScript including definitions of scripting, client-side scripting, and server-side scripting. It discusses how JavaScript code can be placed in HTML files using <script> tags and describes common JavaScript elements like variables, data types, operators, and code structure.
This document provides an overview of JavaScript. It discusses that JavaScript is an object scripting language used to create dynamic online content. It can be used by HTML authors to dynamically script page behavior on both the client-side and server-side. The document then covers basic JavaScript structures like using the <SCRIPT> tag to embed scripts in HTML and external scripts. It also discusses data types in JavaScript, variable declaration, and other syntax conventions.
The document provides an overview of JavaScript, describing it as a lightweight, interpreted programming language used for creating network-centric applications that is integrated with HTML and Java. It discusses how JavaScript allows for client-side scripting to interact with users and make dynamic web pages. The document also covers JavaScript data types, variables, scopes, naming conventions, and special number values. It provides examples of how to write strings, scripts, and declare variables in JavaScript.
1) The document discusses JavaScript and how it can be used to enhance web pages.
2) JavaScript code is written within HTML pages using <script> tags and can reference built-in browser objects like document to manipulate the page.
3) JavaScript supports variables, arrays, functions, and basic programming constructs like if/else statements and loops. While not fully object-oriented, it allows the creation and manipulation of objects.
1) The document discusses JavaScript and how it can be used to enhance web pages.
2) JavaScript code is written within HTML documents using <script> tags and can reference built-in browser objects like document.
3) JavaScript supports variables, arrays, functions, conditional statements, and loops to add interactivity to web pages.
- JavaScript is a lightweight, interpreted programming language designed for creating network-centric applications. It is complementary to and integrated with HTML and Java.
- JavaScript is widely used for client-side validation, manipulating HTML pages, user notifications, and back-end data loading to provide dynamic and interactive features to web pages.
- Popular JavaScript frameworks include jQuery, Angular, React, and Node.js which is used to build fast and scalable network applications and web servers.
It is a JavaScript programming language e book which help you to boost up your Basic Concept and Help you to in hacking respect to Cross-Site Scripting Attack.
This document provides an overview of JavaScript, including:
- JavaScript can run in browsers without needing Java and is used for client-side scripting. It allows dynamic interactions with web pages.
- JavaScript code can be included inline, embedded in <script> tags, or linked externally from .js files. External is preferred for maintenance.
- Variables, data types, operators, and control structures are explained. Objects are collections of properties and methods.
- Client-side scripting benefits include offloading processing to clients and faster responses to user events. Disadvantages include lack of JavaScript support and cross-browser inconsistencies.
- AJAX made JavaScript more important by enabling asynchronous data requests without blocking the browser.
JavaScript is a scripting language that allows adding interactivity to HTML pages. It can be used for client-side form validation and integration with user plugins. JavaScript is case-sensitive and allows variables, functions, conditional statements, and objects. Common uses include pop-up boxes, event handling, and cookies.
This document provides an overview of JavaScript for students. It defines JavaScript, explains why and how it is used, and covers basic JavaScript concepts like comments, functions, and events. Some key points:
- JavaScript is a scripting language commonly used for web development to make pages dynamic and interactive. It runs in the browser rather than on servers.
- JavaScript can be used to validate forms, change content, hide/show elements, and more. Popular uses include adding interactivity to websites and building front-end frameworks.
- Code is inserted between <script> tags and can be placed in HTML <head> or <body>. Functions are blocks of reusable code defined with function keywords.
- Events
Contact Lens:::: An Overview.pptx.: OptometryMushahidRaza8
A comprehensive guide for Optometry students: understanding in easy launguage of contact lens.
Don't forget to like,share and comments if you found it useful!.
GDGLSPGCOER - Git and GitHub Workshop.pptxazeenhodekar
This presentation covers the fundamentals of Git and version control in a practical, beginner-friendly way. Learn key commands, the Git data model, commit workflows, and how to collaborate effectively using Git — all explained with visuals, examples, and relatable humor.
How to Manage Purchase Alternatives in Odoo 18Celine George
Managing purchase alternatives is crucial for ensuring a smooth and cost-effective procurement process. Odoo 18 provides robust tools to handle alternative vendors and products, enabling businesses to maintain flexibility and mitigate supply chain disruptions.
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...Celine George
Analytic accounts are used to track and manage financial transactions related to specific projects, departments, or business units. They provide detailed insights into costs and revenues at a granular level, independent of the main accounting system. This helps to better understand profitability, performance, and resource allocation, making it easier to make informed financial decisions and strategic planning.
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetSritoma Majumder
Introduction
All the materials around us are made up of elements. These elements can be broadly divided into two major groups:
Metals
Non-Metals
Each group has its own unique physical and chemical properties. Let's understand them one by one.
Physical Properties
1. Appearance
Metals: Shiny (lustrous). Example: gold, silver, copper.
Non-metals: Dull appearance (except iodine, which is shiny).
2. Hardness
Metals: Generally hard. Example: iron.
Non-metals: Usually soft (except diamond, a form of carbon, which is very hard).
3. State
Metals: Mostly solids at room temperature (except mercury, which is a liquid).
Non-metals: Can be solids, liquids, or gases. Example: oxygen (gas), bromine (liquid), sulphur (solid).
4. Malleability
Metals: Can be hammered into thin sheets (malleable).
Non-metals: Not malleable. They break when hammered (brittle).
5. Ductility
Metals: Can be drawn into wires (ductile).
Non-metals: Not ductile.
6. Conductivity
Metals: Good conductors of heat and electricity.
Non-metals: Poor conductors (except graphite, which is a good conductor).
7. Sonorous Nature
Metals: Produce a ringing sound when struck.
Non-metals: Do not produce sound.
Chemical Properties
1. Reaction with Oxygen
Metals react with oxygen to form metal oxides.
These metal oxides are usually basic.
Non-metals react with oxygen to form non-metallic oxides.
These oxides are usually acidic.
2. Reaction with Water
Metals:
Some react vigorously (e.g., sodium).
Some react slowly (e.g., iron).
Some do not react at all (e.g., gold, silver).
Non-metals: Generally do not react with water.
3. Reaction with Acids
Metals react with acids to produce salt and hydrogen gas.
Non-metals: Do not react with acids.
4. Reaction with Bases
Some non-metals react with bases to form salts, but this is rare.
Metals generally do not react with bases directly (except amphoteric metals like aluminum and zinc).
Displacement Reaction
More reactive metals can displace less reactive metals from their salt solutions.
Uses of Metals
Iron: Making machines, tools, and buildings.
Aluminum: Used in aircraft, utensils.
Copper: Electrical wires.
Gold and Silver: Jewelry.
Zinc: Coating iron to prevent rusting (galvanization).
Uses of Non-Metals
Oxygen: Breathing.
Nitrogen: Fertilizers.
Chlorine: Water purification.
Carbon: Fuel (coal), steel-making (coke).
Iodine: Medicines.
Alloys
An alloy is a mixture of metals or a metal with a non-metal.
Alloys have improved properties like strength, resistance to rusting.
*Metamorphosis* is a biological process where an animal undergoes a dramatic transformation from a juvenile or larval stage to a adult stage, often involving significant changes in form and structure. This process is commonly seen in insects, amphibians, and some other animals.
Link your Lead Opportunities into Spreadsheet using odoo CRMCeline George
In Odoo 17 CRM, linking leads and opportunities to a spreadsheet can be done by exporting data or using Odoo’s built-in spreadsheet integration. To export, navigate to the CRM app, filter and select the relevant records, and then export the data in formats like CSV or XLSX, which can be opened in external spreadsheet tools such as Excel or Google Sheets.
Title: A Quick and Illustrated Guide to APA Style Referencing (7th Edition)
This visual and beginner-friendly guide simplifies the APA referencing style (7th edition) for academic writing. Designed especially for commerce students and research beginners, it includes:
✅ Real examples from original research papers
✅ Color-coded diagrams for clarity
✅ Key rules for in-text citation and reference list formatting
✅ Free citation tools like Mendeley & Zotero explained
Whether you're writing a college assignment, dissertation, or academic article, this guide will help you cite your sources correctly, confidently, and consistent.
Created by: Prof. Ishika Ghosh,
Faculty.
📩 For queries or feedback: [email protected]
How to Manage Opening & Closing Controls in Odoo 17 POSCeline George
In Odoo 17 Point of Sale, the opening and closing controls are key for cash management. At the start of a shift, cashiers log in and enter the starting cash amount, marking the beginning of financial tracking. Throughout the shift, every transaction is recorded, creating an audit trail.
How to manage Multiple Warehouses for multiple floors in odoo point of saleCeline George
The need for multiple warehouses and effective inventory management is crucial for companies aiming to optimize their operations, enhance customer satisfaction, and maintain a competitive edge.
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...larencebapu132
This is short and accurate description of World war-1 (1914-18)
It can give you the perfect factual conceptual clarity on the great war
Regards Simanchala Sarab
Student of BABed(ITEP, Secondary stage)in History at Guru Nanak Dev University Amritsar Punjab 🙏🙏
This presentation was provided by Bill Kasdorf of Kasdorf & Associates LLC and Publishing Technology Partners, during the fifth session of the NISO training series "Accessibility Essentials." Session Five: A Standards Seminar, was held May 1, 2025.
1. 1. JavaScript Overview
What is JavaScript ?
JavaScript started life as LiveScript, but Netscape changed the
name, possibly because of the excitement being generated by
Java.to JavaScript. JavaScript made its first appearance in
Netscape 2.0 in 1995 with a name LiveScript.
JavaScript is a lightweight, interpreted programming language
with object-oriented capabilities that allows you to build
interactivity into otherwise static HTML pages.
The general-purpose core of the language has been embedded
in Netscape, Internet Explorer, and other web browsers
2. JavaScript is:
JavaScript is a lightweight, interpreted programming language
Designed for creating network-centric applications
Complementary to and integrated with Java
Complementary to and integrated with HTML
Open and cross-platform
3. Client-side JavaScript is the most common form of the
language. The script should be included in or referenced by an
HTML document for the code to be interpreted by the browser.
It means that a web page need no longer be static HTML, but
can include programs that interact with the user, control the
browser, and dynamically create HTML content.
The JavaScript code is executed when the user submits the
form, and only if all the entries are valid they would be
submitted to the Web Server.
JavaScript can be used to trap user-initiated events such as
button clicks, link navigation, and other actions that the user
explicitly or implicitly initiates.
Client-side JavaScript:
4. Advantages of JavaScript:
The merits of using JavaScript are:
Less server interaction: You can validate user input before
sending the page off to the server. This saves server traffic,
which means less load on your server.
Immediate feedback to the visitors: They don't have to wait
for a page reload to see if they have forgotten to enter
something.
Increased interactivity: You can create interfaces that react
when the user hovers over them with a mouse or activates
them via the keyboard.
Richer interfaces: You can use JavaScript to include such items
as drag-and-drop components and sliders to give a Rich
Interface to your site visitors.
5. Limitations with JavaScript:
We can not treat JavaScript as a full fledged programming
language. It lacks the following important features:
Client-side JavaScript does not allow the reading or writing of
files. This has been kept for security reason.
JavaScript can not be used for Networking applications because
there is no such support available.
JavaScript doesn't have any multithreading or multiprocess
capabilities.
6. JavaScript Development Tools:
One of JavaScript's strengths is that expensive development
tools are not usually required. You can start with a simple text
editor such as Notepad.
Since it is an interpreted language inside the context of a web
browser, you don't even need to buy a compiler.
To make our life simpler, various vendors have come up with
very nice JavaScript editing tools. Few of them are listed here:
– Microsoft FrontPage
– Macromedia Dreamweaver MX
– Macromedia HomeSite 5
– Yaldex Software Inc., Free JavaScript Editor
7. 2. JavaScript Syntax
A JavaScript consists of JavaScript statements that are placed within
the <script>... </script> HTML tags in a web page.
You can place the <script> tag containing your JavaScript anywhere
within you web page but it is preferred way to keep it within the
<head> tags.
The <script> tag alert the browser program to begin interpreting all
the text between these tags as a script. So simple syntax of your
JavaScript will be as follows (next slide)
8. <script language="javascript"
type="text/javascript">
JavaScript code
</script>
The script tag takes two important attributes:
language: This attribute specifies what scripting language you are
using. Typically, its value will be javascript. Although recent versions of
HTML (and XHTML, its successor) have phased out the use of this
attribute.
type: This attribute is what is now recommended to indicate the
scripting language in use and its value should be set to "text/javascript".
9. Your First JavaScript Script:
<html>
<body>
<script language="javascript"
type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>
</body>
</html>
10. JavaScript ignores spaces, tabs, and newlines that appear in
JavaScript programs.
Because you can use spaces, tabs, and newlines freely in your
program so you are free to format and indent your programs in
a neat and consistent way that makes the code easy to read
and understand.
Semicolons are Optional:
Simple statements in JavaScript are generally followed by a
semicolon character, just as they are in C, C++, and Java.
JavaScript, however, allows you to omit this semicolon if your
statements are each placed on a separate line. For example, the
following code could be written without semicolons
Whitespace and Line Breaks:
11. • JavaScript is a case-sensitive language. This means that
language keywords, variables, function names, and any other
identifiers must always be typed with a consistent capitalization
of letters.
• So identifiers Time, TIme and TIME will have different meanings
in JavaScript.
• NOTE: Care should be taken while writing your variable and
function names in JavaScript.
Case Sensitivity:
12. Comments in JavaScript:
• JavaScript supports both C-style and C++-style comments, Thus:
• Any text between a // and the end of a line is treated as a
comment and is ignored by JavaScript.
• Any text between the characters /* and */ is treated as a
comment. This may span multiple lines.
• JavaScript also recognizes the HTML comment opening
sequence <!--. JavaScript treats this as a single-line comment,
just as it does the // comment.
• The HTML comment closing sequence --> is not recognized by
JavaScript so it should be written as //-->.
13. Example 1:
<script language="javascript" type="text/javascript">
<!--
// This is a comment. It is similar to comments in C+
+
/*
* This is a multiline comment in JavaScript
* It is very similar to comments in C Programming
*/
//-->
</script>