The JavaScript 10

The JavaScript 10
The JavaScript 10
The JavaScript 10
The JavaScript 10
The JavaScript 10
The JavaScript 10
The JavaScript 10
The JavaScript 10
Product Rating
1 Rating
File Type

Compressed Zip File

Be sure that you have an application to open this file type before downloading and/or purchasing.

17 MB|32 pages
Product Description
The JavaScript 10

10 things you need to know to get JavaScript to behave.

This tutorial highlights ten syntax rules that are critical for writing JavaScript.

This can be used as a face-to-face lab or as a learning activity done online.

On completion of these learning activities the student should be able to:
- Describe the difference between human thought patterns and programming.
- Explain why HTML code needs to be validated for JavaScript code to run.
- Demonstrate how to check for syntax errors using tool built- into the browser.
- List the five naming conventions.
- Describe why the naming conventions are so important.
- Determine where HTML code can be used vs. where JavaScript code can be used.
- Demonstrate how to "hide" HTML commands inside a line of JavaScript.
- Describe why there can't be any HTML code inside an external JavaScript file.
- Demonstrate the difference between a String and a variable.
- Determine syntax errors based on JavaScript punctuation coming in pairs { } ( ) " "
- Describe why white space is important to a programmer.
- Describe when white space is important to JavaScript (and when it doesn't matter).

This tutorial includes links to the video: Delia Hess' video Na cidade / In der Stadt
Multiple file formats included. - Have your students view this activity on their iPads. Your downloaded zip file includes formats for PDF, ePub, and mobi (Kindle).

Articulate Storyline Bonus! An interactive web-based lesson built using Articulate Storyline is included. This contains the same material as the other formats but is more interactive. All the necessary files are included in the folder named javaScript10ArticulateStorylineOutput. View the story.html file to activate the activity on any device.

This is part of the JavaScript Rocks! Series - A complete course in JavaScript programming.

Use these Learning Activities as part of your Introduction to Programming courses.

*** CONTENTS ***
- Why won't my program run?
- Rule #1 - The computer is only a machine.
- No "filling-in-the-blanks"
- Be the machine.
- Shampoo - Lather - Rinse - Repeat
- Rule #2 - Validate your HTML code.
- Rule #3 Validate your JavaScript code.
- Rule #4 Spelling matters.
- Naming Examples
- Rule #5 - No HTML inside the script elements
- Officer! Arrest that HTML code!
- Solution- Officer! Arrest that HTML code!
- Rule #6 - No JavaScript code outside of script elements
- What JavaScript is in the wrong place?
- Solution - What JavaScript is in the wrong place?
- Rule #7 - Just JavaScript in external files.
- You are a web page...
- Rule #8 - Strings Have "Quotes" - Variables Don't
- Is it a String or a variable?
- Solution - Is it a String or a variable?
- Rule #9 - If you start something you have to finish it.
- What is missing?
- Solution - What is missing?
- Rule #10 - What about white space?
- Summary
- Credits

This learning activity was written by Peter K. Johnson from Web Explorations, LLC. It is based on 14-years of teaching web development and programming languages for both online and face-to-face learners. Web Explorations specializes in course development.
Total Pages
32 pages
Answer Key
Teaching Duration
1 hour
Report this Resource
Digital Download
More products from Web Explorations
Product Thumbnail
Product Thumbnail
Product Thumbnail
Product Thumbnail
Product Thumbnail
Teachers Pay Teachers

Teachers Pay Teachers is an online marketplace where teachers buy and sell original educational materials.

Learn More

Keep in Touch!

Sign Up