Javascript Essentials
Javascript Essentials
What is JavaScript?
In this article
we're going to answer the question, what does Javascript do and what is it used for?
Well, first of
all, right off the bat, Javascript
is a programming language. But one of the things that
makes it very unique is that it runs right in your browser. Most programming languages for the web run
on the server, and then what you get in your browser is a plain webpage. JavaScript's actually run by your
browser and that makes it quite unique
in the world of
programming languages. We're here at JavaScript.com and one of their first examples is to simply type your name in quotes and hit
enter. And there, when I did that it turned green, it put a check mark on the
left, and it made a button that said "next challenge". My browser
didn't go out to the server to get all that information, it just did it right
here. So then, what can JavaScript
do for us? There's lots and lots of great things. It's really good at providing
interactivity. Right here in
this blog post, there's this little gallery of pictures. On some of them
if you hover, it pops up a description. And if you click, it fades the page out
to black and brings up a large one with a space for comments below and arrows
on the left and right and a little x here at the top. All kinds of
interactivity. Another example of interactivity comes right here in this form
field. It wants a date. When I click, it brings up a calendar and I can simply
click. That helps remove the possibility of typing in a date incorrectly. And it helps you be sure about the
date you're choosing. Another thing that JavaScript
can enable is real-time
content updates. We're looking here at a Google map and there are little pinpoints
all over it. If I click one, it brings up some information. Now JavaScript
went out to the server and got this little piece of information. It didn't
actually reload the whole page. If I click on a different pinpoint, it goes to
get different information. And then down in
the bottom right are some tools for zooming. Each time I zoom it's going out to
the server, getting a new image. But it's doing it without reloading the entire
browser. So I don't lose whatever work I'm doing elsewhere in this page. JavaScript can also enable animation. I
am telling about a code example page. We have HTML, CSS and JavaScript. But together they make this
solar system. And it's more than just animation. You can choose different
planets to watch. You could turn it into 2D. You could zoom it out so that you
could see all of the planets at once. And you can have different focuses. Right
now we're looking at speed, but if you actually made size proper, this is what
the sun is like in scale to Earth, not like this, and there's also distance. All
of this is done with just a little bit of JavaScript.
One last thing I want to tell you is dealing with data. You can take data in
the proper format and feed it into JavaScript and create charts and
graphs. These charts and graphs can be automatically updated based on the data that gets fed into them. So let's
review. JavaScript is a programing language. And the thing that
makes it unique is that it actually runs in your browser, as opposed to on the
server. It can provide interactivity, real-time content updates, and quite a
few animation options. JavaScript is
an exceptionally powerful language. One last thing I'd like to point out is that JavaScript is not related to Java in any way. The name is an
unfortunate coincidence. They're completely different languages written for
different purposes by different people at different times and they run on
different machines. The thing to remember is that JavaScript is the one that runs in your browser.
Validity 1 to 10 days
With Certificate
0 Comments
Please do not enter any spam link in the comment box.