
Short Over View on JavaScript and Hello World Application
Alert Box -
• Syntax with Example
Variables - How to Create a Variable
•Syntax with Example
Prompt - Get Input from the User
• Syntax with Example
Functions - Create Functions...
• Syntax with Example
Global and Local Variables - What are they and How are they accessed....
•Syntax with Example
Functions with Arguments - Pass values as arguments to your function...
• Syntax with Example
Return Statement - Return a value at the end of the function...
• Syntax with Example
Introduction to Conditional Statements - " If " Statement and " Else if " Statement
• Syntax with Example
Nested-If Statement - An " If " Statement inside an " If " Statement!
• Syntax with Example
Switch Statement - Organised " If " Statement :)
• Syntax with Example
Handle User Interactions easily using Event Handlers in JavaScript
Loop Statement - While Loop and Do While Loop...
• Syntax with Example
Functional Loops - Creating Loops using Functions...
• Syntax with Example
For Loop Statement -
• Syntax with Example
In JavaScript almost everything is an object. Even primitype datatypes (exept null and undefined) can be treated as objects.
• Syntax with Example
Object Initializing - This is where you are going to declare your properties and methods for your object
Object Initializers - Initialize all the properties of your object in just one line!
• Syntax and Example
Add Methods to your Object :)
Array - The Array object is used to store multiple values in a single variable.
• Syntax with Example
These are some other ways to create an Array :)
The Array object is used to store multiple values in a single variable.
•Syntax with Example
JavaScript is the scripting language of the Web.
In a prototyping language every object is an instance of a class. What that means is that objects can be defined and developed on the fly to suit a particular use, rather than having to build out specific classes to handle a specific need. This opens the door for very rapid and flexible development as well as a wide array of possible design patterns that would not be possible in more structured languages. The ability to prototype also allows seamless extension of existing classes, even built in ones.
JavaScript is interpreted by the browser and over time (most) browsers have adapted to giving power users enough freedom to look under the hood and see or even change the JavaScript that's running behind your favorite sites. Pressing F12 on most browsers will open the console which can let you talk directly to the JavaScript and explore it from a top down perspective. In addition to this, many talented developers have created their own publicly available and free tools that make working with JavaScript even easier.
Using these tools makes it very easy to debug your JavaScript too. Any error you run into can be traced back to the exact place it occurred in the browser console or in FireBug. You can place breakpoints in the page code in order to debug the code using traditional methodologies, or simply unit test the bits in the console until the part that isn't working becomes happily apparent.
While JavaScript is probably not the first language that comes to mind when talking about O.O.P. (object oriented programming), it is absolutely able to make use of Object Oriented Design Patterns and principles.
JavaScript may have had humble beginnings, but has grown astronomically over the last decade in scope and application. It is fully supported by all modern browsers and works seamlessly with HTML/DHTML, CSS3 and background services via AJAX. Take a look at its growing popularity compared to other popular languages.
Why this course?
Upon completion of this course, you'll be able to -