Friday, 2 May 2014

Task 6- Javascript & jQuery Fundamentals

In this blog entry I will be describing the purpose of JavaScript as well as its key features. The final part of the task I will be describing the purpose of jQuery as a development tool.
 
JavaScript
 
JavaScript is a scripting language which is used to add functionality to a website. Not only this but JavaScript is also used to edit the layout of the web page for example a drop box. Without JavaScript web pages will not have the interactivity and include the layout features that make the webpage interactive. An example of what JavaScript can be used for menus or navigation tabs. JavaScript is also not a full blown programming language. JavaScript is also different to the other programming language which is Java. Java is used for programming very complex programmes such as...
 
Validation of JavaScript
 
JavaScript also validates anything written on a web page. For example if an email is written and a main character is missing such as “@” then JavaScript code can be written to recognise this and validate the email, It will then not accept the email and notify the user that there is a problem.

JavaScript is supported by some of the web browsers like the 4 different web browers listed below.

> Internet Explorer
> Safari 
> Google Chrome
> Firefox
 
JQuery
 
JQuery is a development tool that is used in the JavaScript library which allows shorter and more accessible lines of JavaScript to be opened. JQuery just goes into the JavaScript library and a short line of code represents jQuery unlike JavaScript where there are many lines of words that represent it. As jQuery is shorter than javascript code time can be saved by not repeating the code. It was mainly designed to make JavaScript easier to code.

Overall less code has to be written when jQuery is being used within the website and another benefit is that there will be fewer errors because there is less repetition.

References

Whats so good about jquery?
02/05/2014
http://bit.ly/1kB6X4o

How jquery works?
02/05/2014
http://bit.ly/1pe4lcy 
 

No comments:

Post a Comment