click below
click below
Normal Size Small Size show me how
JS 2
second vocab
Term | Definition |
---|---|
JavaScript | Object Oriented Programming Language. That means it’s a language used to create objects and do things with those objects. |
Characters | Every letter, number, symbol, or even space that takes up space in a document is called a Unicode character. 1, t, $, and _ are all characters. |
Variable | (written as “var”) is a container that stores a specific value. For example, if x = 3, x is the variable because it stores a value of 3. |
Syntax | set of rules, like grammar, that help JavaScript run properly. A sentence without a period is endless. JavaScript needs rules to work. |
Value | can either be a specific number, a series of numbers that have to be calculated, or something that will be provided later in the code. |
Statements | a single instruction that a web browser (Chrome, Firefox, etc) is supposed to do. It ends with a semicolon. |
Objects | In JavaScript, almost everything is an object because everything has a purpose. Think of objects as a collection of specific values. |
Semicolons | the most used kind of punctuation in JavaScript because it ends every statement. |
Assignment | Variables are usually given assignments like y = 5 where “=” is the assignment operator. Assignments are like homework for variables. |
Operators | symbols used to assign, solve, compare certain values. They can be as simple as “+” (plus) or as weird as “!=” (not equal). |
Functions | blocks of code ( found inside { and } brackets ) written to perform a specific task whenever asked, or called to do so. |
Method | actions that can be performed on various objects and variables. They are written like myMethod(), dodge(), or fatCat(). |
Conditions | a statement (usually written with “if” or “else” or both) used to perform different actions that can be either true or false. |
String | series of characters (like letters, numbers, and symbols) inside quotes. For example, “I play games” is a string of text. |
Events | a “thing” that happens to an HTML element on a page. For example, if clicking on a button makes a box pop up, that was an event. |