Introduction To JavaScript

Good Essays
Topics: JavaScript, Variable
Introduction to
JavaScript

introduction
What Web scripting is?
 How scripting and programming are different (and similar)
 What JavaScript is?






JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer,
Firefox, Chrome, Opera, and Safari.
What is scripting language?
◦ A high-level programming language that is interpreted by another program at runtime.
◦ Scripting languages, which can be embedded within HTML, commonly are used to add functionality to a Web page, such as different menu styles or graphic displays or to serve dynamic advertisements.
◦ These types of languages are client or server-side scripting languages, affecting the data that the end user sees in a browser window.

What is JavaScript?
JavaScript was designed to add interactivity to HTML pages
 JavaScript is a scripting language
 JavaScript is usually embedded directly into
HTML pages
 JavaScript is an interpreted language
(means that scripts execute without preliminary compilation)
 Everyone can use JavaScript without purchasing a license


What can a JavaScript do?
JavaScript gives HTML designers a programming tool
 JavaScript can put dynamic text into an
HTML page
 JavaScript can be used to automate and validate data
 JavaScript can be used to detect the visitor's browser
 JavaScript can be used to create cookies 

Add scrolling or changing messages to the browser’s status line.
 Display messages to the user, either as part of a Web page or in alert boxes.
 Animate images or create images that change when you move the mouse over them.  Create ad banners that interact with the user, rather than simply displaying a graphic.  Detect the browser in use and display different content for different browsers.


JavaScript = ECMAScript











JavaScript is an implementation of the ECMAScript language standard.
ECMAScript is developed and maintained by the
ECMA organization.
ECMA-262 is the

You May Also Find These Documents Helpful

  • Satisfactory Essays

    JavaScript

    • 504 Words
    • 3 Pages

    document.images["image01"] 3. Write a function that uses substring method of String object to get the 'Scr' part of the string 'JavaScript'. Also use the length property and write the length of the string 'JavaScript' and use the charAt method to get the 'S' from 'JavaScript' and write that. var str="JavaScript"; document.write(str.substring(4,7)+" "); var str = "JavaScript"; document.write(str.charAt(str.length -6)); 4. Explain how a Date object's instance is created and used. Also describe…

    • 504 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Power of JavaScript

    • 366 Words
    • 2 Pages

    JavaScript (JS) is a dynamic computer programming language.[5] It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.[5] It has also become common in server-side programming, game development and the creation of desktop applications. JavaScript is a prototype-based scripting language with dynamic typing and has first-class functions…

    • 366 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Javascript Tutorial

    • 8574 Words
    • 35 Pages

    Tutorials Point, Simply Easy Learning Javascript Tutorial Tutorialspoint.com Javascript is a scripting language produced by Netscape for use within HTML Web pages. JavaScript is loosely based on Java and it is built into all the major modern browsers. This tutorial gives an initial push to start you with Javascript. For more detail kindly check tutorialspoint.com/javascript What is JavaScript ? JavaScript is:      JavaScript is a lightweight, interpreted programming language Designed…

    • 8574 Words
    • 35 Pages
    Better Essays
  • Powerful Essays

    HTML5 and Javascript Projects

    • 10067 Words
    • 41 Pages

    HTML5 and JavaScript Projects ¦ ¦ ¦ Jeanine Meyer HTML5 and JavaScript Projects Copyright © 2011 by Jeanine Meyer All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN-13 (pbk): 978-1-4302-4032-7 ISBN-13 (electronic): 978-1-4302-4033-4…

    • 10067 Words
    • 41 Pages
    Powerful Essays
  • Powerful Essays

    Javascript: C and Draw

    • 2149 Words
    • 9 Pages

    INTRODUCTION TO JAVASCRIPT {draw:rect} What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language A JavaScript consists of lines of executable computer code A JavaScript is usually embedded directly into HTML pages JavaScript is an interpreted language (means that scripts execute without preliminary compilation) Everyone can use JavaScript without…

    • 2149 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Individual: JavaScript Functions Individual: JavaScript Functions LaToya Rodgers Web/401 Web Development February 4, 2015 Professor Daniel Testerman Individual JavaScript Functions When thinking of the functions that are needed in order for JavaScript to function, there are several that comes to mind. One first has to understand what JavaScript is; it is an object-oriented computer programming language that is used to create a responsive effect within and between web…

    • 500 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Javascript Error Handling

    • 255 Words
    • 2 Pages

    Material Appendix C JavaScript™ Code for Error Handling Read the directions carefully and write JavaScript code that addresses the requirements. Copy your code directly into the Appendix document and then post to your Individual forum. 1. Write JavaScript code that anticipates and handles an error for an expected numeric field. This code is executed on keypress and the entered value is saved for you in a variable called enteredChar. Include the try block of JavaScript statements needed to…

    • 255 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    JavaScript Arrays Lab

    • 531 Words
    • 4 Pages

    BRITISH COLUMBIA INSTITUTE OF TECHNOLOGY JavaScript lab exercise COMP-1536 Due: At the end of the lab period School of Computing and Academic Studies Program: CST The objective of this lab is to familiarize you with JavaScript, JavaScript arrays, and JavaScript debugging. Startup Start by downloading and extracting a file named ChineseZodiacForLoopStartup.zip. You will find the following files: The Images folder contains 12 images that represent the Chinese Zodiac animals. Notice that some images…

    • 531 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Javascript Course Notes

    • 9708 Words
    • 39 Pages

    JavaScript Essentials The purpose of most JavaScript scripts is to make a Web page interactive, whether or not a program is running on the server to enhance that interactivity. Making a page interactive means tracking user action and responding with some visible change on the page. The avenues for communication between user and script include familiar onscreen elements, such as fields and buttons, as well as dynamic. To assist the scripter in working with these elements, the browser and JavaScript…

    • 9708 Words
    • 39 Pages
    Powerful Essays
  • Powerful Essays

    Intro Java and JavaScript share many similarities, but are unique in many more ways. The two languages share similar goals and history, but both serve vastly different purposes. While both are object-oriented languages, Java is an interpreted language while JavaScript is, as its name implies, a scripting language, and not a true programming language. Java is meant mostly to be a multi-tiered language, while JavaScript was written to be a client-side language. While the two languages may look very…

    • 2401 Words
    • 10 Pages
    Powerful Essays