Lessons Learned from JavaScript

What is JavaScript?

According to http://webteacher.com/javascript/, "Javascript is an easy-to-use programming language that can be embedded in the header of your web pages. It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more."


Hardware and Software Used for JavaScript

According to Dr. Barron's instruction in Blackboard, "JavaScript is a scripting language that is typed right into HTML code. Therefore, you do not need to buy a programming language or authoring system." Internet Explorer, Mozilla Firefox, Safari are some of the web browsers' software that require to display this assignment. Also, the hardware is a personal computer including a monitor or a laptop to access the web page.


Steps to Complete JavaScript

(1) Creating/modifying an HTML page by using a free web template from http://www.csstemplateheaven.com/, (2) embedding JavaScript inside HTML document, (3) uploading the homepage in the USF web server at myweb.usf.edu, (4) testing and modifying the codes if needed.


Sample Screen

The user first needs to select an answer for each question and then press Submit button at the end of the page to get the quiz result.


Lessons Learned

This project is a refreshment for me because I have to re-learn each step through the fundamentals of JavaScript. Throughout the process, I have tried many HTML codes and found out the codes are long, boredom and sometimes confused. Thus, I implemented JavaScript with HTML codes making the web page more interesting to see when a function is calling within a function.

For this assignment, JavaScript function plays an important role in term of grasping users' inputs to display the quiz result either they get it right or wrong. The object for this web page document is the HTML form (calling from JavaScript functions), which storing the quiz information from the users entered for each question, and then the JavaScript functions will read that data in order to to show the quiz result at the end. I'm amazed with how JavaScript works with HTML. Please check out page http://hhngo.myweb.usf.edu/IntEd/act4/JavaScript.htm for the JavaScript activity.


Back to Main Page