logged out
Dark Mode
Show all answers
About
All
OOP
NB
Arrays
Functions
Acronyms
Objects
Data Structures
Networking
Database
CSS
test
test2
Basics
test
Reveal answer.
What are the benefits of using a switch statement?
id:145
The benefit of a switch statement is that the expression is only evaluated once. as opposed to an if statement.
Functions
Reveal answer.
What is a pure function?
id:49
A pure function is a function which has no side effects, that is to say the function does not change any variables, or objects outside its own scope; and it will always return the same result when supplied with the same arguments. Pure functions are very easy to test, which is their main advantage.
Reveal answer.
What is oop?
id:25
OOP is a programming paradigm which provides an easily comprehensible method for modeling complicated systems of real world data into manageable software solutions. paradigm - A pattern or model.
Acronyms
Reveal answer.
What is CRUD?
id:94
Create, read, update, delete.
CSS
Reveal answer.
What are attributes?
id:72
Attributes are additional information about HTML elements, which are specified within the elements start tag. eg src alt href class id usually come in name=”value” pairs.
Functions
Reveal answer.
What is a higher order function?
id:41
A higher order function is a function which accepts functions as parameters, and/or returns a function. Higher order functions help reduce code duplication and favor the single responsibility principle. A first order function only accepts/returns primitives or objects.
OOP
Reveal answer.
What is the super() keyword?
id:37
When using extends to extend the functionality of a class, if we exclude the constructor the derived class will invoke the constructor of its parent class. If we intend to add unique properties to the derived class, we can achieve this by creating its own constructor and invoking super() to inherit the properties of the parent class.
Objects
Reveal answer.
What is object property shorthand?
id:143
When a property and key are the same, we can shorten the object by only including the key.
Reveal answer.
Difference between ‘for-in’ and ‘for of’?
id:7
Both are looping constructs. ‘for in’ iterates over all enumerable property keys of an object. ‘for of’ iterates over the values of an iterable object. What are reference types? Reference types include arrays, objects and functions.
Reveal answer.
What is a Set?
id:0
A set is an object with a collection of values, within which a value may occur only once. That is to say that each value is unique within the set. A set is similar to an array, but they are not indexed.