Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

sharrison-JavaScript

Beginning JavaScript Vocabulary

TermDefinition
array literals list values in a pair of square brackets
Accessing array elements You can get elements out of arrays if you know their index. Array elements' indexes start at 0 and increment by 1, so the first element's index is 0, the second element's index is 1, the third element's is 2, etc
Multi-dimensional Arrays A two-dimensional array is an array within an array.
Array constructor a way of creating an array
Accessing nested array elements Accessing multi dimensional array elements is quite similar to one-dimension arrays . They are accessed by using [index][index]
boolean literal syntax, true or false
Boolean logical operators syntax
Comparison operators syntax, true or false
== vs. === == does just value checking and === does both value checking and type checking
code comments Comments are like notes , suggestions , warnings ,etc. that you can put for yourself. Code comments are not executed
Single Line Comment Anything on the line following // will be a comment while anything before will still be code
Multi-Line Comment Anything between /* and */ will be a comment.
console.log Prints text to the console. Useful for debugging.
console.time This function starts a timer which is useful for tracking how long an operation takes to happen.
console.timeEnd Stops a timer that was previously started by calling console.time().
Function a set of statements that performs a task or calculates a value.
Function hoisting Declaring a function one way "hoists" it to the top of the call, and makes it available before it's actually defined.
if if this condition is true , do this , else do something else ( or nothing ) .
else A fallback to an if statement. This will only get executed if the previous statement did not.
else if It will only run if its condition is true, and the previous statement's condition was false.
for loops You use for loops, if you know how often you'll loop.
while loops You use while loops, if you don't know how often you'll loop.
do while loops You use do while loops, if you have to loop at least once, but if you don't know how often.
random Returns a random number between 0 and 1
floor Returns the largest integer less than or equal to a number
pow Returns base raised to exponent
ceil Returns the smallest integer greater than or equal to a number.
PI Returns the ratio of the circumference of a circle to its diameter, approximately 3.14159 or in better terms, the value of PI (π)
sqrt Returns the square root of a number
% (Modulus) it returns the remainder left after dividing the left hand side with the right hand side.
isNaN Returns true if the given number is not a number , else returns false.
Basic Arithmetic Doing basic arithmetic is simple.
Prefix and Postfix increment/decrement operators operators that first increase the value of the variable by 1 (increment) or decrease the value of an expression / variable by 1 (decrement) and then return this incremented / decremented value.
Object Literals properties and values
Property Access name1[string] name2.identifier
OOP object-oriented programming
classes thought of as a template to create many objects with similar qualities.
alert isplay an alert dialog with the specified message and an OK button
confirm confirm("message") //returns true if confirmed, false otherwise
prompt displays a dialog with an optional message prompting the user to input some text.
Concatenation string1 + string2
length Returns the length of the string.
toUpperCase, toLowerCase Changes the cases of all the alphabetical letters in the string.
trim() Removes whitespace from both ends of the string.
replace() Returns a string with the first match substring replaced with a new substring.
charAt() Returns the specified character from a string.
substring() Returns the sequence of characters between two indices within a string
indexOf() Returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex, Returns -1 if the value is not found
switch Acts like a big if / else if / else chain. Checks a value against a list of cases, and executes the first case that is true.
Ternary Operator he ternary operator is usually used as a shortcut for the if statement.
Variable Assignment var name = value;
Variable changing varname = newValue
Created by: 2014uvag
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards