Solved

JavaScript Undefined Function

Posted on 2012-12-26
3
554 Views
Last Modified: 2012-12-27
Hi

I require some help with my JavaScript - I trying to learn Web development along with Java Script by watching some JavaScript videos on Channel9 (JavaScript for Absolute Beginners - Bob Tabor).
While everything works just fine in the demonstration videos I run into problems when I enter and execute the same code (I believe to be the same code) on my computer.
Using the IE9 - F12 Developer Tools  it keep telling me I'm either missing a ';'  and/or my Function is undefined - see attached files.
I've checked and double checked my code against what is presented in the training videos but I can't spot what I'm doing wrong.
My computer is running under Vista and I have IE9 installed.
The video demonstartion JavaScript code is very simple and basic but I can't seem to get beyond square 1.
Any help would be much appreciated.
Java---Lesson-6.png
Java---Lesson-7.png
0
Comment
Question by:Adlerm
3 Comments
 
LVL 28

Accepted Solution

by:
chilternPC earned 200 total points
Comment Utility
put the "If" in lower case "if"
0
 

Author Closing Comment

by:Adlerm
Comment Utility
chilternPC - Thank you so much - a lesson well learnt. It never even crossed my mind that the JavaScript language was case sensitive. Even the second problem - Function ==> function now works. Again many thanks.
Cheers
Michael
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now