SlideShare una empresa de Scribd logo
1 de 32
11
Tutorial 1Tutorial 1
Introduction toIntroduction to
JavaScriptJavaScript
Section A – Programming, HTML,Section A – Programming, HTML,
and JavaScriptand JavaScript
22
Tutorial 1A TopicsTutorial 1A Topics
 Section A – Programming, HTML, andSection A – Programming, HTML, and
JavaScriptJavaScript
• About the World Wide WebAbout the World Wide Web
• Uses of JavaScriptUses of JavaScript
• About Hypertext Markup LanguageAbout Hypertext Markup Language
• How to creating an HTML documentHow to creating an HTML document
• About the JavaScript programming languageAbout the JavaScript programming language
• About logic and debuggingAbout logic and debugging
33
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The World Wide WebThe World Wide Web
• Created in 1989Created in 1989
 European Laboratory for Particle PhysicsEuropean Laboratory for Particle Physics
(Geneva Switzerland)(Geneva Switzerland)
• PurposePurpose
 Provide an easy way to access cross-Provide an easy way to access cross-
referenced documents that exist on thereferenced documents that exist on the
internetinternet
44
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The World Wide WebThe World Wide Web
• Hypertext linksHypertext links
 Contain reference to locate and open specificContain reference to locate and open specific
documentsdocuments
• Hypertext Markup Language (HTML)Hypertext Markup Language (HTML)
 Language used to design web pagesLanguage used to design web pages
(documents)(documents)
• Web BrowserWeb Browser
 Program that displays HTML documentsProgram that displays HTML documents
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
55
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The World Wide WebThe World Wide Web
• Uniform Resource Locator (URL)Uniform Resource Locator (URL)
 A type of Uniform Resource Identifier (URI)A type of Uniform Resource Identifier (URI)
• Identifies names and addresses on the WWWIdentifies names and addresses on the WWW
 A unique identifier for a web documentA unique identifier for a web document
• e.g., a telephone number or mailing addresse.g., a telephone number or mailing address
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
66
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The World Wide WebThe World Wide Web
• Uniform Resource Locator (URL)Uniform Resource Locator (URL)
 Consists of 4 parts:Consists of 4 parts:
• ProtocolProtocol →→ Hyper Text Transfer Protocol (HTTP)Hyper Text Transfer Protocol (HTTP)
• Domain NameDomain Name →→ or Internet Protocol (IP) addressor Internet Protocol (IP) address
• DirectoryDirectory
• FilenameFilename
 Specific document filenameSpecific document filename
 index.(s)htm(l) or default.(s)htm(l)index.(s)htm(l) or default.(s)htm(l)
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
77
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
88
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 JavaScript’s role on the WebJavaScript’s role on the Web
• HTMLHTML
 PurposePurpose →→ tell the browser how a documenttell the browser how a document
should appearshould appear
 StaticStatic →→ can view or print (no interaction)can view or print (no interaction)
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
99
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 JavaScript’s role on the WebJavaScript’s role on the Web
• JavaScript Programming LanguageJavaScript Programming Language
 Developed by Netscape for use in NavigatorDeveloped by Netscape for use in Navigator
Web BrowsersWeb Browsers
 PurposePurpose →→ make web pages (documents)make web pages (documents)
more dynamic and interactivemore dynamic and interactive
• Change contents of document, provide forms andChange contents of document, provide forms and
controls, animation, control web browser window,controls, animation, control web browser window,
etc.etc.
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1010
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1111
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1212
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1313
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Hypertext Markup LanguageHypertext Markup Language
• HTML DocumentHTML Document
 Text document that contains:Text document that contains:
• TagsTags →→ formatting instructionsformatting instructions
• Text to be displayedText to be displayed
 Document isDocument is parsedparsed oror renderedrendered by browserby browser
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1414
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Hypertext Markup LanguageHypertext Markup Language
• HTML DocumentHTML Document
 TagsTags
• Enclosed in brackets <tag>Enclosed in brackets <tag>
• Generally consist of:Generally consist of:
 Opening tags <tag>Opening tags <tag>
 Closing tags </tag>Closing tags </tag>
• Text contained between the opening and closingText contained between the opening and closing
tags are formatted according to tag instructionstags are formatted according to tag instructions
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1515
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Hypertext Markup LanguageHypertext Markup Language
• HTML DocumentHTML Document
 TagsTags
• All HTML documents begin with <html> tag andAll HTML documents begin with <html> tag and
end with </html>end with </html>
• HTML isHTML is notnot case sensitivecase sensitive
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1616
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Hypertext Markup LanguageHypertext Markup Language
• HTML DocumentHTML Document
 Tag AttributesTag Attributes
• Used to configure tagsUsed to configure tags
• Placed before closing bracket of opening tagPlaced before closing bracket of opening tag
 <tag attribute=“value”>some text</tag><tag attribute=“value”>some text</tag>
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1717
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1818
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
1919
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2020
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Hypertext Markup LanguageHypertext Markup Language
• HTML DocumentHTML Document
 Web browser only acknowledges text andWeb browser only acknowledges text and
valid tagsvalid tags
 Web browser ignores non-printingWeb browser ignores non-printing
characterscharacters
• Spaces, tabs, carriage returnsSpaces, tabs, carriage returns
 Must use valid tags or special characterMust use valid tags or special character
codes to accomplish this:codes to accomplish this:
• Non-breaking spaceNon-breaking space →→ &nbsp;&nbsp;
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2121
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2222
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2323
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Creating an HTML DocumentCreating an HTML Document
• Text editor (text)Text editor (text)
 Notepad, WordPadNotepad, WordPad
• Word Processor (that can create textWord Processor (that can create text
files)files)
 WordWord
• HTML Editor (WYSIWYG)HTML Editor (WYSIWYG)
 FrontPage, PageMillFrontPage, PageMill
• HTML Converters (WYSIWYG)HTML Converters (WYSIWYG)
 Word, PowerPointWord, PowerPoint
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2424
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2525
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The JavaScript ProgrammingThe JavaScript Programming
LanguageLanguage
• Scripting LanguagesScripting Languages
 Executed by an interpreter contained withinExecuted by an interpreter contained within
the web browser (scripting host)the web browser (scripting host)
 Interpreter uses a scripting engineInterpreter uses a scripting engine
• Converts code to executable format each time itConverts code to executable format each time it
runsruns
• Converted when browser loads web documentConverted when browser loads web document
2626
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The JavaScript ProgrammingThe JavaScript Programming
LanguageLanguage
• JavaScriptJavaScript
 Originally called LiveScript when introducedOriginally called LiveScript when introduced
in Netscape Navigatorin Netscape Navigator
 In Navigator 2.0, name changed toIn Navigator 2.0, name changed to
JavaScriptJavaScript
 Current version 1.5Current version 1.5
• JScriptJScript
 MS version of JavaScriptMS version of JavaScript
• Current version 5.5Current version 5.5
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2727
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The JavaScript ProgrammingThe JavaScript Programming
LanguageLanguage
• ECMAScriptECMAScript
 International, standardized version (EditionInternational, standardized version (Edition
3)3)
 Both versions (JavaScript and JScript)Both versions (JavaScript and JScript)
conform to the standardconform to the standard
• Although both have proprietary extensionsAlthough both have proprietary extensions
 Focus of this textFocus of this text
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2828
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 The JavaScript ProgrammingThe JavaScript Programming
LanguageLanguage
• JavaScriptJavaScript
 Two formats:Two formats:
• Client-sideClient-side
 Program runs on client (browser)Program runs on client (browser)
• Server-sideServer-side
 Program runs on serverProgram runs on server
 Proprietary to web server platformProprietary to web server platform
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
2929
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
3030
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Logic and DebuggingLogic and Debugging
• SyntaxSyntax
 Rules of the languageRules of the language
• LogicLogic
 Order of execution of various parts of theOrder of execution of various parts of the
programprogram
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
3131
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Logic and DebuggingLogic and Debugging
• Syntax errorSyntax error
 Misuse of syntaxMisuse of syntax
• e.g., typinge.g., typing ferfer instead ofinstead of forfor
• Logic errorsLogic errors
 Unintended operation of programUnintended operation of program
• e.g., Infinite loope.g., Infinite loop
JavaScript Tutorial 1 -JavaScript Tutorial 1 -
Introduction to JavaScriptIntroduction to JavaScript
3232
Programming, HTML, andProgramming, HTML, and
JavaScriptJavaScript
 Logic and DebuggingLogic and Debugging
• DebuggingDebugging
 Tracing and resolving errors in a programTracing and resolving errors in a program
 Coined by Admiral Grace HopperCoined by Admiral Grace Hopper
• Moth short-circuited a relayMoth short-circuited a relay
 ““bug” in the systembug” in the system
• Removed itRemoved it →→ system “debugged”system “debugged”
 NotNot an exact sciencean exact science

Más contenido relacionado

La actualidad más candente

Apertium: a unique free/open-source MT system for related languages [but not ...
Apertium: a unique free/open-source MT system for related languages [but not ...Apertium: a unique free/open-source MT system for related languages [but not ...
Apertium: a unique free/open-source MT system for related languages [but not ...Gema Ramirez-Sanchez
 
Laravel and Django and Rails, Oh My!
Laravel and Django and Rails, Oh My!Laravel and Django and Rails, Oh My!
Laravel and Django and Rails, Oh My!Chris Roberts
 
Guglielmo iozzia - Google I/O extended dublin 2018
Guglielmo iozzia - Google  I/O extended dublin 2018Guglielmo iozzia - Google  I/O extended dublin 2018
Guglielmo iozzia - Google I/O extended dublin 2018Guglielmo Iozzia
 
PHP to Hack at Slack
PHP to Hack at SlackPHP to Hack at Slack
PHP to Hack at SlackScott Sandler
 
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!panagenda
 

La actualidad más candente (6)

Apertium: a unique free/open-source MT system for related languages [but not ...
Apertium: a unique free/open-source MT system for related languages [but not ...Apertium: a unique free/open-source MT system for related languages [but not ...
Apertium: a unique free/open-source MT system for related languages [but not ...
 
Laravel and Django and Rails, Oh My!
Laravel and Django and Rails, Oh My!Laravel and Django and Rails, Oh My!
Laravel and Django and Rails, Oh My!
 
Guglielmo iozzia - Google I/O extended dublin 2018
Guglielmo iozzia - Google  I/O extended dublin 2018Guglielmo iozzia - Google  I/O extended dublin 2018
Guglielmo iozzia - Google I/O extended dublin 2018
 
PHP to Hack at Slack
PHP to Hack at SlackPHP to Hack at Slack
PHP to Hack at Slack
 
Learning sparql 2012 12
Learning sparql 2012 12Learning sparql 2012 12
Learning sparql 2012 12
 
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!
ICON UK '13 - Apache Software: The FREE Java toolbox you didn't know you had !!
 

Similar a Introduction To Javascript_ Vibrant Technologies & Computers

Similar a Introduction To Javascript_ Vibrant Technologies & Computers (20)

introduction to javascript
introduction to javascriptintroduction to javascript
introduction to javascript
 
Web Fundamental
Web FundamentalWeb Fundamental
Web Fundamental
 
Introduction to Web Standards
Introduction to Web StandardsIntroduction to Web Standards
Introduction to Web Standards
 
web development process WT
web development process WTweb development process WT
web development process WT
 
Wt unit 1 ppts web development process
Wt unit 1 ppts web development processWt unit 1 ppts web development process
Wt unit 1 ppts web development process
 
JS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTINGJS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTING
 
Java script
Java scriptJava script
Java script
 
Java script
Java scriptJava script
Java script
 
Intro to Web Standards
Intro to Web StandardsIntro to Web Standards
Intro to Web Standards
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
 
Php reports sumit
Php reports sumitPhp reports sumit
Php reports sumit
 
UCLA HACKU'11
UCLA HACKU'11UCLA HACKU'11
UCLA HACKU'11
 
Welcome to React.pptx
Welcome to React.pptxWelcome to React.pptx
Welcome to React.pptx
 
Java script202
Java script202Java script202
Java script202
 
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
 
Basics of Web Designing Languages
Basics of Web Designing LanguagesBasics of Web Designing Languages
Basics of Web Designing Languages
 
"Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful..."Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful...
 
Java script
Java scriptJava script
Java script
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
javascript 1
javascript 1javascript 1
javascript 1
 

Más de Vibrant Technologies & Computers

Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Vibrant Technologies & Computers
 

Más de Vibrant Technologies & Computers (20)

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables  SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
 
SQL- Introduction to MySQL
SQL- Introduction to MySQLSQL- Introduction to MySQL
SQL- Introduction to MySQL
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
 
Salesforce - Introduction to Security & Access
Salesforce -  Introduction to Security & Access Salesforce -  Introduction to Security & Access
Salesforce - Introduction to Security & Access
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housingData ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computingSalesforce - classification of cloud computing
Salesforce - classification of cloud computing
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamentalSalesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to  advanced sql conceptsSQL- Introduction to  advanced sql concepts
SQL- Introduction to advanced sql concepts
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data martSas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
 
Sas - Introduction to working under change management
Sas - Introduction to working under change managementSas - Introduction to working under change management
Sas - Introduction to working under change management
 
SAS - overview of SAS
SAS - overview of SASSAS - overview of SAS
SAS - overview of SAS
 
Teradata - Architecture of Teradata
Teradata - Architecture of TeradataTeradata - Architecture of Teradata
Teradata - Architecture of Teradata
 
Teradata - Restoring Data
Teradata - Restoring Data Teradata - Restoring Data
Teradata - Restoring Data
 

Último

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Último (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

Introduction To Javascript_ Vibrant Technologies & Computers

  • 1. 11 Tutorial 1Tutorial 1 Introduction toIntroduction to JavaScriptJavaScript Section A – Programming, HTML,Section A – Programming, HTML, and JavaScriptand JavaScript
  • 2. 22 Tutorial 1A TopicsTutorial 1A Topics  Section A – Programming, HTML, andSection A – Programming, HTML, and JavaScriptJavaScript • About the World Wide WebAbout the World Wide Web • Uses of JavaScriptUses of JavaScript • About Hypertext Markup LanguageAbout Hypertext Markup Language • How to creating an HTML documentHow to creating an HTML document • About the JavaScript programming languageAbout the JavaScript programming language • About logic and debuggingAbout logic and debugging
  • 3. 33 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The World Wide WebThe World Wide Web • Created in 1989Created in 1989  European Laboratory for Particle PhysicsEuropean Laboratory for Particle Physics (Geneva Switzerland)(Geneva Switzerland) • PurposePurpose  Provide an easy way to access cross-Provide an easy way to access cross- referenced documents that exist on thereferenced documents that exist on the internetinternet
  • 4. 44 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The World Wide WebThe World Wide Web • Hypertext linksHypertext links  Contain reference to locate and open specificContain reference to locate and open specific documentsdocuments • Hypertext Markup Language (HTML)Hypertext Markup Language (HTML)  Language used to design web pagesLanguage used to design web pages (documents)(documents) • Web BrowserWeb Browser  Program that displays HTML documentsProgram that displays HTML documents
  • 5. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 55 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The World Wide WebThe World Wide Web • Uniform Resource Locator (URL)Uniform Resource Locator (URL)  A type of Uniform Resource Identifier (URI)A type of Uniform Resource Identifier (URI) • Identifies names and addresses on the WWWIdentifies names and addresses on the WWW  A unique identifier for a web documentA unique identifier for a web document • e.g., a telephone number or mailing addresse.g., a telephone number or mailing address
  • 6. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 66 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The World Wide WebThe World Wide Web • Uniform Resource Locator (URL)Uniform Resource Locator (URL)  Consists of 4 parts:Consists of 4 parts: • ProtocolProtocol →→ Hyper Text Transfer Protocol (HTTP)Hyper Text Transfer Protocol (HTTP) • Domain NameDomain Name →→ or Internet Protocol (IP) addressor Internet Protocol (IP) address • DirectoryDirectory • FilenameFilename  Specific document filenameSpecific document filename  index.(s)htm(l) or default.(s)htm(l)index.(s)htm(l) or default.(s)htm(l)
  • 7. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 77
  • 8. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 88 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  JavaScript’s role on the WebJavaScript’s role on the Web • HTMLHTML  PurposePurpose →→ tell the browser how a documenttell the browser how a document should appearshould appear  StaticStatic →→ can view or print (no interaction)can view or print (no interaction)
  • 9. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 99 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  JavaScript’s role on the WebJavaScript’s role on the Web • JavaScript Programming LanguageJavaScript Programming Language  Developed by Netscape for use in NavigatorDeveloped by Netscape for use in Navigator Web BrowsersWeb Browsers  PurposePurpose →→ make web pages (documents)make web pages (documents) more dynamic and interactivemore dynamic and interactive • Change contents of document, provide forms andChange contents of document, provide forms and controls, animation, control web browser window,controls, animation, control web browser window, etc.etc.
  • 10. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1010
  • 11. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1111
  • 12. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1212
  • 13. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1313 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Hypertext Markup LanguageHypertext Markup Language • HTML DocumentHTML Document  Text document that contains:Text document that contains: • TagsTags →→ formatting instructionsformatting instructions • Text to be displayedText to be displayed  Document isDocument is parsedparsed oror renderedrendered by browserby browser
  • 14. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1414 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Hypertext Markup LanguageHypertext Markup Language • HTML DocumentHTML Document  TagsTags • Enclosed in brackets <tag>Enclosed in brackets <tag> • Generally consist of:Generally consist of:  Opening tags <tag>Opening tags <tag>  Closing tags </tag>Closing tags </tag> • Text contained between the opening and closingText contained between the opening and closing tags are formatted according to tag instructionstags are formatted according to tag instructions
  • 15. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1515 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Hypertext Markup LanguageHypertext Markup Language • HTML DocumentHTML Document  TagsTags • All HTML documents begin with <html> tag andAll HTML documents begin with <html> tag and end with </html>end with </html> • HTML isHTML is notnot case sensitivecase sensitive
  • 16. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1616 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Hypertext Markup LanguageHypertext Markup Language • HTML DocumentHTML Document  Tag AttributesTag Attributes • Used to configure tagsUsed to configure tags • Placed before closing bracket of opening tagPlaced before closing bracket of opening tag  <tag attribute=“value”>some text</tag><tag attribute=“value”>some text</tag>
  • 17. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1717
  • 18. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1818
  • 19. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 1919
  • 20. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2020 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Hypertext Markup LanguageHypertext Markup Language • HTML DocumentHTML Document  Web browser only acknowledges text andWeb browser only acknowledges text and valid tagsvalid tags  Web browser ignores non-printingWeb browser ignores non-printing characterscharacters • Spaces, tabs, carriage returnsSpaces, tabs, carriage returns  Must use valid tags or special characterMust use valid tags or special character codes to accomplish this:codes to accomplish this: • Non-breaking spaceNon-breaking space →→ &nbsp;&nbsp;
  • 21. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2121
  • 22. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2222
  • 23. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2323 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Creating an HTML DocumentCreating an HTML Document • Text editor (text)Text editor (text)  Notepad, WordPadNotepad, WordPad • Word Processor (that can create textWord Processor (that can create text files)files)  WordWord • HTML Editor (WYSIWYG)HTML Editor (WYSIWYG)  FrontPage, PageMillFrontPage, PageMill • HTML Converters (WYSIWYG)HTML Converters (WYSIWYG)  Word, PowerPointWord, PowerPoint
  • 24. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2424
  • 25. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2525 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The JavaScript ProgrammingThe JavaScript Programming LanguageLanguage • Scripting LanguagesScripting Languages  Executed by an interpreter contained withinExecuted by an interpreter contained within the web browser (scripting host)the web browser (scripting host)  Interpreter uses a scripting engineInterpreter uses a scripting engine • Converts code to executable format each time itConverts code to executable format each time it runsruns • Converted when browser loads web documentConverted when browser loads web document
  • 26. 2626 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The JavaScript ProgrammingThe JavaScript Programming LanguageLanguage • JavaScriptJavaScript  Originally called LiveScript when introducedOriginally called LiveScript when introduced in Netscape Navigatorin Netscape Navigator  In Navigator 2.0, name changed toIn Navigator 2.0, name changed to JavaScriptJavaScript  Current version 1.5Current version 1.5 • JScriptJScript  MS version of JavaScriptMS version of JavaScript • Current version 5.5Current version 5.5
  • 27. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2727 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The JavaScript ProgrammingThe JavaScript Programming LanguageLanguage • ECMAScriptECMAScript  International, standardized version (EditionInternational, standardized version (Edition 3)3)  Both versions (JavaScript and JScript)Both versions (JavaScript and JScript) conform to the standardconform to the standard • Although both have proprietary extensionsAlthough both have proprietary extensions  Focus of this textFocus of this text
  • 28. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2828 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  The JavaScript ProgrammingThe JavaScript Programming LanguageLanguage • JavaScriptJavaScript  Two formats:Two formats: • Client-sideClient-side  Program runs on client (browser)Program runs on client (browser) • Server-sideServer-side  Program runs on serverProgram runs on server  Proprietary to web server platformProprietary to web server platform
  • 29. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 2929
  • 30. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 3030 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Logic and DebuggingLogic and Debugging • SyntaxSyntax  Rules of the languageRules of the language • LogicLogic  Order of execution of various parts of theOrder of execution of various parts of the programprogram
  • 31. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 3131 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Logic and DebuggingLogic and Debugging • Syntax errorSyntax error  Misuse of syntaxMisuse of syntax • e.g., typinge.g., typing ferfer instead ofinstead of forfor • Logic errorsLogic errors  Unintended operation of programUnintended operation of program • e.g., Infinite loope.g., Infinite loop
  • 32. JavaScript Tutorial 1 -JavaScript Tutorial 1 - Introduction to JavaScriptIntroduction to JavaScript 3232 Programming, HTML, andProgramming, HTML, and JavaScriptJavaScript  Logic and DebuggingLogic and Debugging • DebuggingDebugging  Tracing and resolving errors in a programTracing and resolving errors in a program  Coined by Admiral Grace HopperCoined by Admiral Grace Hopper • Moth short-circuited a relayMoth short-circuited a relay  ““bug” in the systembug” in the system • Removed itRemoved it →→ system “debugged”system “debugged”  NotNot an exact sciencean exact science