1 / 6

Introduction to JavaScript

JavaScript is the most popular programming language used on the web today. It is a scripting language that allows browsers to interpret code and perform various tasks. With JavaScript, you can create variables, perform math functions, use if statements and loops, design object-oriented programs, modify web page contents, display dynamic maps, and interact with users in many ways. However, JavaScript cannot access local computer resources, launch programs, or introduce viruses.

wmb
Download Presentation

Introduction to JavaScript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to JavaScript • JavaScript is the most popular programming language today. • Largely because of the popularity of the Web and that it is the only language available in the browsers. • JavaScript is a scripting language • The browser receives JavaScript “code” as text and then “interprets” it into “machine code” that the computer understands.

  2. JavaScript Client Server Internet Browser URL Web Server HTML File HTML File Image File Image File Script Scripts

  3. JavaScript in HTML • <script> • var x=12; • var y=2; • var z=x+y; • alert(z); • </script>

  4. With JavaScript you can: • Do everything you can in other modern programming languages: • Create variables • Do math, date and string functions • Create “if” statements, “for” loops, “while” loops, and functions • Create Object Oriented Designs (more on this later)

  5. You can also • Access and modify the contents of your web pages • Put up error dialogs • Make it look like you’re putting up windows with controls like buttons, popup menus, lists, etc. • Display dynamic maps • Interact with the user in many other ways

  6. JavaScript cannot • Access the local computers disk drive, network (other than it’s original server), printer, and other resources • Launch another program • Add viruses to your computer

More Related