Frontend

make an Interactive Website 3 JavaScript

clover__ 2014. 8. 22. 17:09

JavaScript

In order to make interactive web pages with jQuery, it's useful to know a few things about JavaScript.

JavaScript is a programming language that jQuery is written in, and knowing JavaScript will be helpful for understanding and writing your code.

The next cards will cover a few fundamental JavaScript concepts.


Variables

Variables store data so that they can be used later on in the program.  The keyword var creates a new variable namedcounterThe value 140 is stored in counterThe statement ends with a semicolon to tell the computer that the statement has ended.

Strings


Comparisons

It's possible to compare variables using comparisons.

  • > - Greater than

  • < - Less than

  • >= Greater than or equal to

  • <= Less than or equal to

  • === Equal to score1 === score2;

  • !== Not equal to


Functions

A function is run by calling its name and giving it input values.












728x90
반응형
LIST