Course Hero Logo

Module07.pptx - CCCS 310 Web Development Introduction to...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 7 out of 20 pages.

1CCCS 310 Web DevelopmentIntroduction to JavaScriptTzu-Yang (Ben) Yu
2What Is JavaScript (JS)JavaScript is a programming language that adds interactivity andcustom behaviors to websites.JavaScript is not Java.JavaScript is a dynamic programming language—it doesn’t need tobe run through a compiler.JavaScript is also loosely typed. You don’t need to specify variabletype when you create it.
3Why We Need JSThe markup (i.e., HTML) and CSS are static.We need JavaScript to interact with the web page.This includes HTML markup, and the “presentation” of a pagewhich is made up of CSS.We can also write scripts that react to user input.
4Adding JavaScript to a PageEmbedded scriptExternal script(s)*The script element can go anywhere inthe document, but the most commonplaces for scripts are in the head of thedocument and at the very end of the body.
5Example
6Create VariableWe use‘var’to create a variable.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 20 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Summer
Professor
NoProfessor
Tags

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture