Blog Post #10


You’ve probably heard this term a billion times amongst your higher-ups in the web developing and design field. But what exactly is JavaScript?

JavaScript is a popular scripting language used on the Internet to make interactive websites, working on all major browsers like Internet Explorer, Safari, Opera, Firefox, and Chrome.

What does it do?

  • It can react to events, like when  someone  hovers over a button or clicks on a link.
  • It can read , write, and change the content within the HTML.
  • It can be used to validate data before it gets to the server, which saves the server from extra processing.
  • It can be used to store and retrieve cookies/information from a computer.
  • It can be used to detect the type of browser, and, depending on the browser, it can even load a page specially designed for that browser.

To think of it another way, JavaScript is kind of like an extension or an add-on to HTML. Like a snazzy hat or an expensive wristwatch on an average Joe. You use HTML tags to create a page, and you interact with it by using JavaScript.  And all you have to do is embed a JavaScript code into an HTML file to make an average Joe into a Snazzy McSnazzpants!

Why would you want to use JavaScript?

JavaScript is fast, so instead of waiting for contact with the server and waiting for an answer, JavaScript runs immediately. It’s also easy to learn and simple to use, and is flexible with other languages and can be used in a wide variety of applications. It can be inserted into any web page regardless of the file extension. JavaScript can also be used inside scripts written in other languages.

Why would you NOT want to use JavaScript?

Sometimes can be exploited for malicious purposes, like planting Trojans and viruses, so some people choose to disable JavaScript. It is also sometimes interpreted differently by different browsers. The server scripts can produce the same output, while the client’s can be unpredictable. So it’s important to test your script in all the major browsers.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s