2

Week12 11/28 JavaScript

Readings:

W3Schools Online Web Tutorials

______________________________________________________

Section 1. Introduction

[kml_flashembed movie=” http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week12javascript-110503224255-phpapp01&stripped_title=week12-javascript-7826642″ width=”525″ height=”405″ allowfullscreen=”true” /]

______________________________________________________

Section 2. Where to write Javascript?

Creating A Simple Internal JavaScript In Your Webpage

[youtube]http://www.youtube.com/watch?v=wUzwLK3s3EU[/youtube]

Creating External JavaScripts and Linking them to your HTML document

[youtube]http://www.youtube.com/watch?v=aPuWMrmE3FM&feature=related[/youtube]

______________________________________________________

Section 3. JavaScript Variables and Operators

[youtube]http://www.youtube.com/watch?v=J_Lm3zi7wnU&feature=related[/youtube]

[youtube]http://www.youtube.com/watch?v=00LZnu_lYe8&feature=related[/youtube]

______________________________________________________

Section 4. Global and Local Variables
[youtube]http://www.youtube.com/watch?v=waF2Isf-phQ[/youtube]

______________________________________________________

Section 5. Understanding the Order of Operations

[youtube]http://www.youtube.com/watch?v=ZlOXWZ9vgRo&feature=related[/youtube]

______________________________________________________

Section 6. Functions in Javascript

[youtube]http://www.youtube.com/watch?v=WPopG1L01ck[/youtube]

______________________________________________________

Section 7. If Statement

[youtube]http://www.youtube.com/watch?v=5gjr15aWp24[/youtube]

If else Statment
[youtube]http://www.youtube.com/watch?v=FKyrQYkihGw[/youtube]

______________________________________________________

Section 8. For Loop

[youtube]http://www.youtube.com/watch?v=Coxgr66EwRk[/youtube]

______________________________________________________

Section 9. While Loop

[youtube]http://www.youtube.com/watch?v=QPFW_0blw9w[/youtube]

______________________________________________________

Assignment (5 points):

Use a loop or a function to create a program that displays the following:

This is created with JavaScript:

This is my lucky number 20.
This is my lucky number 18.
This is my lucky number 16.
This is my lucky number 14.
This is my lucky number 12.
This is my lucky number 10.
This is my lucky number 8.
This is my lucky number 6.
This is my lucky number 4.
This is my lucky number 2.
This is my lucky number 0.

After it is done, please submit your .html file to the Blackboard under Assignments > Week12.

Thanks.

2 comments to Week12 JavaScript

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

STAY IN TOUCH

Simple Calendar

Nothing from August 25, 2017 to September 1, 2017.

LEAVE A MESSAGE

[contact-form-7 id="33" title="Contact form 1"]