logged out
Dark Mode
Show all answers
About
All
OOP
NB
Arrays
Functions
Acronyms
Objects
Data Structures
Networking
Database
CSS
test
test2
Basics
Reveal answer.
What is a package registry?
id:103
PM registry GITHub packages A package registry is a database for thousands of packages.(libraries, plugins frameworks, tools) A packet registry is the place packages get published to and installed from.
Reveal answer.
What is dynamic typing?
id:3
Dynamic typing means that an engine assigns a type to variables at run time. The type of a variable is assigned at the moment of the variables initialisation. Therefore type annotation is not required.
Data Structures
Reveal answer.
What is a weakmap?
id:167
A weakmap is a collection of key value pairs, in which the key must always be an object. A WeakMap is a map (dictionary) where the keys are weak - that is, if all references to the key are lost and there are no more references to the value - the value can be garbage collected.
CSS
Reveal answer.
What is the difference between margin and padding?
id:76
Padding is included within the click region and background color/image, but margin is not. Vertical margins auto collapse, but paddings do not. Consider two elements, one above the other. If both have a padding of 1em, they will be 2ems apart. However if both have a margin of 1em, the margin will auto collapse, resulting in them being only 1em apart.
Basics
Reveal answer.
What are the primitive data types?
id:9
string, number, boolean, null, undefined, symbol, Bigint,
Reveal answer.
What is a design pattern?
id:135
Design patterns are reusable solutions to commonly occurring problems in software design.
Objects
NB
test
Reveal answer.
What is object equality?
id:154
Referential equality vs structural equality? Referential equality of two objects means that they both reference the exact same object in memory. ie they use the same reference. Structural equality means they both objects have the same value.
test
Reveal answer.
What is lexical scope?
id:56
Lexical scope is the definition area of an expression. ie the place in which the item was created. The place an item gets invoked, or called, is not necessarily the items lexical scope. Instead an items definition space is its lexical scope. Lexical scope refers to setting the scope, or range of functionality, of a variable. Lexical scope means that in a nested group of functions, the inner functions have access to the variables and other resources of their parent scope. This means that the child functions are lexically bound to the execution context of their parents. Every time the javascript engine creates an execution context to execute the function, or global code, it also creates a new lexical environment to store the variables defined in that function during the execution of that function. In lexical scope a child can access its parent scope and global scope, but a parent cannot access the child scope. CODE>>BLOCK>>FUNCTION>>GLOBAL Lexical scope does not care where the function is invoked.
Acronyms
Reveal answer.
What is a MVP?
id:88
Minimum viable product.
Reveal answer.
What is a linter?
id:148
ESlint. A linter is a tool that analyses source code to flag programming errors, bugs, stylistic errors etc.