Lecture 6 - Intro to JavaScript - annotated

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

Info icon This 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.
Image of page 1

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

View Full Document Right 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.
Image of page 2
3 Variables Not prefixed by ‘$’ in JavaScript. Can
Image of page 3

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern