Section 1

Preview this deck

Code block or Block Statement

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (76)

Section 1

(50 cards)

Code block or Block Statement

Front

A code block is an instruction to the program. When a program runs, it goes through all of the code blocks you've set up and executes their instructions. A code block instructs the program to move whatever Actor's code that code block is in. A code block instructs the program to change the Background.

Back

%

Front

Arithmetic operator for remainder (division) in JavaScript

Back

toUpperCase()

Front

A String method that returns the String without any lower case letters.

Back

console.log

Front

JavaScript statement. Displays a string and/or variable values in the debug console in App Lab.

Back

JavaScript Data Types

Front

1. Number - Any number, including decimals 2. String - Any grouping of characters surrounded by quotes 3. Boolean - True or False 4. Null - Intentional absence of a value (keyword, no quotes) 5. Undefined - Different term for absence of a value (keyword, no quotes) 6. Symbol - Unique identifiers useful in complex coding. 7. Object - Collections of related data. More complex than the other six "primitive" types.

Back

Parameters

Front

Allow a function to accept inputs and perform a task using those inputs. function functionName(parameters){ }

Back

Return

Front

The functional keyword used to send a value back to a method's caller. It basically captures the result of a function so that it can be printed. SYNTAX return [value we want to return]

Back

toLowerCase()

Front

A String method that returns the String without any capital letters.

Back

JavaScript

Front

One of the most commonly used scripting language for use in web pages. Creates the logic that defines the behavior of webpages.

Back

Arguments

Front

The values that a program provides to a function.

Back

var

Front

Defines a variable in JavaScript.

Back

HTTPS

Front

Hypertext Transfer Protocol Secure Enables the secure transmission of data through servers identified as secure due to a certificate from a certificate authority.

Back

Calling a function

Front

function-identifier(); Actually runs the function in code

Back

ternary operator

Front

variable ? true : false; An alternate syntax for if/else conditional statements.

Back

Template literals

Front

' ${placeholder variable}' Syntax used for string concatenations

Back

*

Front

Arithmetic Operator for multiplication in JavaScript

Back

Console

Front

Panel that displays important messages, like errors, for developers. In JavaScript, the console keyword refers to an object—a collection of data and actions.

Back

typeof

Front

Returns the type of a variable

Back

camel casing

Front

A style in which an identifier begins with a lowercase letter and subsequent words within the identifier are capitalized. Use in JavaScript.

Back

" + "

Front

String concatenation in JavaScript. When + operator is used with strings.

Back

default parameters

Front

This allows some parameters to be optional for the caller, must be last in the parameter list If the caller does use that argument slot, the parameter takes the value passed in by the caller (the normal way functions work) If the caller chooses not to fill that argument slot, the parameter takes its default value

Back

Length (property)

Front

Stores an integer that represents the number of characters contained in a string

Back

if

Front

Conditional keyword in JavaScript

Back

// //

Front

Beginning and ending of a single-line comment in JavaScript.

Back

Arrow functions

Front

Alternative syntax that is easier for writing functions. Instead of writing "function" you can simply list the arguments, follow them with a fat arrow => and then point to a block of code.

Back

/ /

Front

Beginning and ending of a multi-line comment in JavaScript.

Back

-

Front

Arithmetic Operator for subtraction in JavaScript

Back

logical operators

Front

&& and | | or ! not (also known as the bang operator) Can be used to evaluate if multiple criteria are true or false in a conditional statement. Adds an additional layer of logic to code.

Back

short circuit evaluation

Front

When a boolean expression is evaluated the evaluation starts at the left hand expression and proceeds to the right, stopping when it is no longer necessary to evaluate any further to determine the final outcome. Helps assign clear truthy and falsy designations.

Back

=, +=, -=, *=, /=, %=

Front

Mathematical (re)assignment operators in JavaScript.

Back

else if statement

Front

The most general way of writing a multi-way decision. 1. The expressions are evaluated in order. 2. If any expression is true, the block associated with it is executed and this terminates the whole chain. It's like nesting IF functions in Excel "else if" always follows the initial "if" and ultimate "else" statements

Back

HTTP

Front

HyperText Transfer Protocol - the protocol used for transmitting web pages over the Internet

Back

Property

Front

JavaScript - an aspect of a datum (like length)

Back

switch statement

Front

allows multi-way branching. In many cases, using a switch statement can simplify a complex combination of if-else statements. Alternative syntax good for conditional statements with MANY options switch(var) { case 'case' : statement; break; case2... Default Switch statements should conclude with a default to catch everything else. Includes several different blocks of code, whereas if/else statements all occur in the same single block of code.

Back

helper function

Front

A design concept—basically a function inside another function as a matter of convenience.

Back

const

Front

JavaScript keyword that makes a variable unmodifiable. Must be assigned when declared and cannot be reassigned.

Back

let

Front

JavaScript keyword that allows a variable to be assigned a different value—or even an undefined value.

Back

falsy values

Front

false null - no value provided at all 0 - self explanatory " " or ' ' - Empty strings undefined - when a declared variable lacks a value NaN - not a number Automatically run the "else" script in a conditional statement.

Back

truthy values

Front

all values other than the six falsy values; truthy values are treated in comparison operation as the Boolean value true.

Back

function expression

Front

1 var bindingName = function actualName () { 2 //... 3 }; Invoking the function expression entails stating the variable followed by any arguments from the function expression. A function that is often stored inside a variable to help with defining that variable in the first place.

Back

++, - -

Front

Increment operators in JavaScript. Increase or decrease variable value by 1.

Back

Conditional statement

Front

JavaScript that checks specific conditions and performs a task based on its review. Includes if, else if, else, and switch statements.

Back

myName

Front

Sets a variable's name in JavaScript

Back

Else

Front

Conditional keyword in JavaScript. MUST be used in conjunction with and following an "if" statement.

Back

Variable

Front

Container for a values or information in JavaScript. Examples: Username, account number. Basically they label and store data in memory. Rules Cannot start with numbers; are case sensitive; cannot be the same as keywords

Back

Functional Declarations

Front

Binds a function to a name in JavaScript.. it does not RUN the function; it merely defines it. Must include the "function" keyword SYNTAX function identifier () { block of statements; }

Back

/

Front

Arithmetic operator for division in JavaScript

Back

+

Front

Arithmetic operator for addition in JavaScript

Back

Comparison Operator

Front

Used to compare two values. The comparison operator can be used in a condition of an if statement or while loop to return to a Boolean value indicating whether a comparison is true. < less than > greater than <= less than or equal to >= greater than or equal to === is equal to !== is not equal to All comparison statements evaluate to either TRUE or FALSE

Back

Methods

Front

Actions performed in JavaScript. In console.log( ), log is the method performed on the object, console.

Back

Section 2

(26 cards)

radio

Front

Attribute to the <input> HTML element. Requires a user to make only one selection out of multiple available.

Back

<br>

Front

HTML element for a line break Self-closing tag

Back

border-box

Front

In the CSS box model, the box that contains the content and padding boxes.

Back

content-box

Front

In the CSS box model, the box that contains the content of the element.

Back

box-sizing

Front

Basic User Interface Properties: Tells the browser what the sizing properties (width and height) should include

Back

HTML

Front

Hypertext Markup Language, a standardized system for tagging text files to achieve font, color, graphic, and hyperlink effects on World Wide Web pages. It is the "skeleton" of a webpage.

Back

<label></label>

Front

HTML element. Adds a label to a corresponding ID. SYNTAX <label> for="id">Label Language</label>

Back

box model

Front

content, padding, border, margin Concept for how elements are arranged and sized in CSS.

Back

border

Front

Specified the thickness and style of a perimeter surrounding a piece of content and its padding.

Back

regex

Front

Compares a text field to a regular expression and returns TRUE if there is a match, otherwise FALSE String used to describe a format of a string according to certain syntax rules REGEX(text, regex_text)

Back

<option></option>

Front

"HTML tag that specifies a choice in a <select> or <datalist> tag. Needs to include both a back-end "value" as well as some copy visible to the end user.

Back

Margin

Front

Specifies the amount of space between the border and the outside edge of the element. Basically it is "padding" for the border.

Back

<datalist></datalist>

Front

This HTML5 element is useful when you want to provide a list of choices and allow entry of data in a text box. Can be used in lieu of a drop down menu—especially if a user is permitted to submit data outside the recommended options.

Back

<select></select>

Front

HTML element defines a list of selection options in a <form></form>. Results in the creation of a drop down menu with numerous options.

Back

Height & Width (CSS)

Front

Pertain to the vertical and horizontal dimensions of a piece of content.

Back

<section></section>

Front

HTML element. Defines a container that acts like a type of thematic area on the page.

Back

padding

Front

Blank space placed around elements of a display to make it look the way the designer planned. Comes between the content and the border.

Back

submit

Front

Data type for <input> HTML attribute that commands the site to transmit the information the user has filled in. Creates a button whose copy is determined by "value" attribute.

Back

TCP

Front

Transmission Control Protocol - provides reliable, ordered, and error-checked delivery of a stream of packets on the internet. TCP is tightly linked with IP and usually seen as TCP/IP in writing.

Back

checkbox

Front

Another attribute to the <input> element. Allows users to provide multiple inputs to answer a question

Back

<textarea></textarea>

Front

Defines a multiline input control (text area). Can add default text within the box, too.

Back

<hr>

Front

Self-closing HTML element that creates a horizontal line break.

Back

range

Front

HTML attribute applied to numerical <input> elements that change the interface to a slider. Ranges must specify min and max values

Back

<form>

Front

HTML element that facilitate the collection and transmission of data.

Back

<input>

Front

HTML element, usual child of the <form> element, that allows for the input of data. Has a "type" attribute which determines the type of data it can accept Also has a "name" attribute so the data can be accurately labeled. It is a self-closing element

Back

step

Front

Attribute in HTML element <input> that puts arrows in a numerical field, so that values can only be added according to certain parameters.

Back