Notes Flashcards
____ is where the type is bound to the variable. Types are checked at compile time.
Static/Strong typing
____ is where the type is bound to the value. Types are checked at run time.
Dynamic/Loosely typing
Curly braces are used for
Grouping code blocks
What does it mean that Javascript objects are mutable?
They are addressed by their reference, not by their value.
ie. x = 16, x points to 16 but isn’t equal to it.
True or False? Making changes to the reference (ie. X) will change the object?
True
var person = {firstName ="Paul} var x = person.age; x.age = 10;
True or false? Variables are mutable
False
True or False? Methods are properties in Javascript
True
How does this way of accessing a javascript object work?
x = “age”;person[x]
Accessing age of person x, but assigns it to variable x.
___ is used to request data from a specified resource.
GET
____ is used to send data to a server to create/update a resource.
POST
Why bother with building an object, when you can use an array
Objects can have methods
True or false? console.log(person.firstName); is equivalent to x = "firstName"; console.log(person["x"));
True
A method inside of an object is just another _____
property
What is the “this” keyword?
Refers to the properties within the object itself.