SlideShare a Scribd company logo
Chapter 1
Basics of JavaScript Programming
K. K. Wagh Polytechnic, Nashik-3
Prof.P.S.Chavan
CO505.1: Develop Programs Using PHP
1
• Brendan Eich is an American computer
programmer and technology executive. He
created the JavaScript programming language
and co-founded the Mozilla project, the
Mozilla Foundation, and the Mozilla
Corporation.
Prof.P.S.Chavan 2
Prof.P.S.Chavan 3
Overview of JavaScript:
Prof.P.S.Chavan
• It is dynamic Computer Programming language
• Lightweight and most commonly used for web pages.
• It interact with user and make a web page dynamic.
• Using HTML only static pages can be created.
• No user interaction with HTML
• JavaScript was developed by Netscape in 1995.
• Its initial name was LiveScript.
• Later on Sun Microsystems joined Netscape and the name
is changed to JavaScript.
4
Features of JavaScript:
Prof.P.S.Chavan
• Browser Support: No plug-in needed. Almost all
browsers support
• Structure Programming Syntax: Similar to ‘C’
• Automatically inserts ‘;’ at the end of statement. No need
to write.
• Dynamic Typing: Data type is bound to value not to
variable. Ex: one can assign integer value to any variable
say ‘a’ and later can assign string value to same variable
‘a’.
• Run time Evaluation: ‘eval’ function can be used in
expression
5
Features of JavaScript cont.:
Prof.P.S.Chavan
• Support for object: It is Object Oriented Programming
language
• Regular Expression: Supports use of regular expression
using which text-pattern matching can be done.
• Function Programming: In this functions can be used.
One function can use other or can be assigned to a
variable just like some data type.
6
Enabling JavaScript for various Browsers:
Prof.P.S.Chavan 7
Enabling JavaScript for various Browsers:
Prof.P.S.Chavan 8
Enabling JavaScript for various Browsers:
Prof.P.S.Chavan 9
Writing a JavaScript Document :
• The javascript can be directly embedded within HTML document
or it can be stored as external file.
• Syntax:
• <script type=“text/javascript”>
------------
-------------
</script>
Two attributes of <script> tag are:
• type: <script type=“text/javascript”>
</script>
• language: <script language=“javascript”>
</script>
Prof.P.S.Chavan 10
Writing a First Program:
<html>
<head></head>
<body>
<script type="text/javascript">
document.write("HELLO WORLD");
</script>
<p>this is web page body</p>
</body>
</html>
Prof.P.S.Chavan 11
Explanation of Program:
• We have embedded a javascript within
<script type=“=“text/javascript”>
----------
</script>
• A comment can be
//
/* */ or can use XHTML comment
<! -- > and < -->
• document.write is used to display desired message on web browser.
• To run the program
Open any web browser and type complete name of file on the
address bar.
Prof.P.S.Chavan 12

More Related Content

Similar to LO-1 Chapter-1.pptx

Resume
ResumeResume
Resume
Mina k
 
Basics java scripts
Basics java scriptsBasics java scripts
Basics java scripts
ch samaram
 

Similar to LO-1 Chapter-1.pptx (20)

JavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxJavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptx
 
Intro JavaScript
Intro JavaScriptIntro JavaScript
Intro JavaScript
 
Product Camp Silicon Valley 2018 - PM Technical Skills
Product Camp Silicon Valley 2018 - PM Technical SkillsProduct Camp Silicon Valley 2018 - PM Technical Skills
Product Camp Silicon Valley 2018 - PM Technical Skills
 
Java script introduction
Java script introductionJava script introduction
Java script introduction
 
Full Stack Web Development
Full Stack Web DevelopmentFull Stack Web Development
Full Stack Web Development
 
Hsc IT Chap 3. Advanced javascript-1.pdf
Hsc IT Chap 3. Advanced javascript-1.pdfHsc IT Chap 3. Advanced javascript-1.pdf
Hsc IT Chap 3. Advanced javascript-1.pdf
 
33701220007_BCAC-501.pptx
33701220007_BCAC-501.pptx33701220007_BCAC-501.pptx
33701220007_BCAC-501.pptx
 
Java script
Java scriptJava script
Java script
 
Java script
Java scriptJava script
Java script
 
JS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTINGJS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTING
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Resume
ResumeResume
Resume
 
WT Unit-3 PPT.pptx
WT Unit-3 PPT.pptxWT Unit-3 PPT.pptx
WT Unit-3 PPT.pptx
 
Javascript best practices
Javascript best practicesJavascript best practices
Javascript best practices
 
Basics java scripts
Basics java scriptsBasics java scripts
Basics java scripts
 
Advanced Web Technology.pptx
Advanced Web Technology.pptxAdvanced Web Technology.pptx
Advanced Web Technology.pptx
 
Java script by Act Academy
Java script by Act AcademyJava script by Act Academy
Java script by Act Academy
 
Instagram filters (8 24)
Instagram filters (8 24)Instagram filters (8 24)
Instagram filters (8 24)
 
30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software Engineer30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software Engineer
 
Top frontend web development tools
Top frontend web development toolsTop frontend web development tools
Top frontend web development tools
 

Recently uploaded

Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DrGurudutt
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
An improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyAn improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technology
 
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdfONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptx
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 

LO-1 Chapter-1.pptx

  • 1. Chapter 1 Basics of JavaScript Programming K. K. Wagh Polytechnic, Nashik-3 Prof.P.S.Chavan CO505.1: Develop Programs Using PHP 1
  • 2. • Brendan Eich is an American computer programmer and technology executive. He created the JavaScript programming language and co-founded the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation. Prof.P.S.Chavan 2
  • 4. Overview of JavaScript: Prof.P.S.Chavan • It is dynamic Computer Programming language • Lightweight and most commonly used for web pages. • It interact with user and make a web page dynamic. • Using HTML only static pages can be created. • No user interaction with HTML • JavaScript was developed by Netscape in 1995. • Its initial name was LiveScript. • Later on Sun Microsystems joined Netscape and the name is changed to JavaScript. 4
  • 5. Features of JavaScript: Prof.P.S.Chavan • Browser Support: No plug-in needed. Almost all browsers support • Structure Programming Syntax: Similar to ‘C’ • Automatically inserts ‘;’ at the end of statement. No need to write. • Dynamic Typing: Data type is bound to value not to variable. Ex: one can assign integer value to any variable say ‘a’ and later can assign string value to same variable ‘a’. • Run time Evaluation: ‘eval’ function can be used in expression 5
  • 6. Features of JavaScript cont.: Prof.P.S.Chavan • Support for object: It is Object Oriented Programming language • Regular Expression: Supports use of regular expression using which text-pattern matching can be done. • Function Programming: In this functions can be used. One function can use other or can be assigned to a variable just like some data type. 6
  • 7. Enabling JavaScript for various Browsers: Prof.P.S.Chavan 7
  • 8. Enabling JavaScript for various Browsers: Prof.P.S.Chavan 8
  • 9. Enabling JavaScript for various Browsers: Prof.P.S.Chavan 9
  • 10. Writing a JavaScript Document : • The javascript can be directly embedded within HTML document or it can be stored as external file. • Syntax: • <script type=“text/javascript”> ------------ ------------- </script> Two attributes of <script> tag are: • type: <script type=“text/javascript”> </script> • language: <script language=“javascript”> </script> Prof.P.S.Chavan 10
  • 11. Writing a First Program: <html> <head></head> <body> <script type="text/javascript"> document.write("HELLO WORLD"); </script> <p>this is web page body</p> </body> </html> Prof.P.S.Chavan 11
  • 12. Explanation of Program: • We have embedded a javascript within <script type=“=“text/javascript”> ---------- </script> • A comment can be // /* */ or can use XHTML comment <! -- > and < --> • document.write is used to display desired message on web browser. • To run the program Open any web browser and type complete name of file on the address bar. Prof.P.S.Chavan 12