Lecture 6 - Intro to JavaScript - annotated

Lecture 6 - Intro to JavaScript - annotated - Project 1...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Introduction to JavaScript INFO/COM S 230: Intermediate Web Design and Programming Project 1 Regrades: – Fill out form from server – Meet with me – Entire project will be regraded (e.g. grade could go up or down). – Regrade must be within a week from today. “Best of”: Forum posts with examples of good projects. – Will be contacting students to ask permission (since info is personal). – In general, will not ask – will assume this is OK unless you tell us otherwise. JavaScript is a programming language used in web programming, like PHP, but with some major differences. PHP JavaScript Easy PDF Creator is professional software to create PDF. If you wish to remove this line, buy it now.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 PHP vs. JavaScript PHP: JavaScript: Where JavaScript goes Can either put it inline in the HTML file; e.g. <script type=“text/javascript”> …JavaScript goes here… </script> . or in a separate file <script type=“text/javascript” src=“myjavascript.js”> </script> Your first JavaScript program <script type=“text/javascript”> document.write(“Hello world!\n”); </script> Your second JavaScript program <script type=“text/javascript”> alert(“Hello World”); </script> Your third JavaScript program <script type=“text/javascript”> window.open(“helloworld.html”, “”, “”); </script> Familiar things Easy PDF Creator is professional software to create PDF. If you wish to remove this line, buy it now.
Background image of page 2
3 Variables Not prefixed by ‘$’ in JavaScript. Can declare by ‘var’ when variable is first created. var mystring=‘cat’;
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

Lecture 6 - Intro to JavaScript - annotated - Project 1...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online