Section 1

Preview this deck

Strict equal to?

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

4 years ago

Date created

Mar 1, 2020

Cards (20)

Section 1

(20 cards)

Strict equal to?

Front

===

Back

What are values given to functions called?

Front

Arguments

Back

What is the operator that represent the logical 'or?'

Front

The || operator denotes logical or. It produces true if either of the values given to it is true.

Back

Greater than or equal to?

Front

>=

Back

What is a Boolean?

Front

A True/False value. The words true and false are special keywords in JS, and don't need quotes. var myVariable = true;

Back

What are the two values that don't have properties?

Front

Null and undefined.

Back

What is a number?

Front

A number. Numbers don't have quotes around them. var myVariable = 10;

Back

What is the difference between a function definition and a function declaration?

Front

A function definition is a regular variable definition where the value given to the variable happens to be a function. A function declaration is a slightly shorter was to do this, where the statement defines the variable and points at the given function. Definition: var cat = function() {}; Declaration: function cat() {};

Back

What is the operator that represent the logical 'and?'

Front

&& (It is a binary operator, and its result is true only if both the values given to it are true.)

Back

Equal to?

Front

==

Back

What is an Array?

Front

A structure that allows you to store multiple values in one single reference. var myVariable = [1,'Bob','Steve',10]; Refer to each member of the array like this: myVariable[0], myVariable[1], etc.

Back

Not equal to?

Front

!=

Back

Can you create multiple variable at the same time?

Front

Yes: var year = 2011, month = 10, day = 31;

Back

In general, where should your script tag be placed in HTML?

Front

At the end of the <body> tag

Back

What is a variable?

Front

A variable is a container. The name of the variable must be written as one word, no spaces are allowed and it can be made of letters, numbers, the underscore and the Dollar sign, but you can't start with a number. var year; //variable called year is undefined var year = 2011;

Back

What is JavaScript?

Front

JavaScript is a lightweight, interpreted, object-oriented, weakly-defined programming language. It's best known for it's use on the web.

Back

What is an Object?

Front

An object is something that has properties and methods. A property is like a variable to belongs to an object. A method is something that object can do or can be done to that object. Example: An array has a length property. You can push an item to an array (method). var student = { name: "Lance", grades: [85, 75, 90, 100] };

Back

Modulus (%)

Front

Returns that remainder after division.

Back

What is a string?

Front

A string of text. To signify that the variable is a string, you should enclose it in quote marks. var myVariable = 'Bob';

Back

What is fragment of code that produces a value called?

Front

An expression.

Back