logged out
Dark Mode
Show all answers
About
All
OOP
NB
Arrays
Functions
Acronyms
Objects
Data Structures
Networking
Database
CSS
test
test2
Basics
CSS
Reveal answer.
What is the DOM?
id:68
The DOM is a web API for HTML/XML web documents, which represents the document as a tree-like structure. Each branch of the tree ends in a node, and each node contains objects. These objects can be manipulated, so that programs can change the document structure, style and content. The DOM represents the document as nodes and objects. The DOM is built using multiple APIs acting in unison.
Reveal answer.
What is yoast?
id:129
Yoast is a WordPress plugin which helps a site perform better in SEO.
Functions
NB
Reveal answer.
What is a callback function?
id:42
A callback function is a function which is passed to another function as a parameter. This function is then invoked within the calling function, to complete some kind of routine or action. Javascript is a scripting language based on events. Callbacks are a technique of ensuring that a particular code does not run until another code has finished execution.
Basics
NB
Reveal answer.
What is the difference between let and var?
id:5
The main difference is scoping rules. Variables declared with var are scoped to the immediate function body, while let/const variables are scoped to the immediate enclosing block. Var variables are hoisted and initialized to undefined. let variables are not initialized until their definition is evaluated. Accessing them before the initialization results in a ReferenceError. The variable is said to be in “temporal dead zone” from the start of the block until the let is initialized. At the top level, let, unlike var, does not create a property on the global object. let foo = ‘foo’; window.foo; // undefined
CSS
Reveal answer.
CSS grid. grid-template-columns: repeat(12,fr); gap:10px; Grid items grid-columns: 2/6 -- Places an item between 2nd and 6th column on the grid. grid-row:2 -- Places an item on the second row. Responsive images What are the common breakpoints?
id:82
Common breakpoints are 320px — 480px for mobile devices, 481px — 768px for iPads & tablets, 769px — 1024px for small screens like laptop, 1025px — 1200px for large screens like Desktops, and 1201px and above for extra large screens like TV. const size = { mobileS: '320px', mobileM: '375px', mobileL: '425px', tablet: '768px', laptop: '1024px', laptopL: '1440px', desktop: '2560px', }; const device = { mobileS: `(min-width: ${size.mobileS})`, mobileM: `(min-width: ${size.mobileM})`, mobileL: `(min-width: ${size.mobileL})`, tablet: `(min-width: ${size.tablet})`, laptop: `(min-width: ${size.laptop})`, laptopL: `(min-width: ${size.laptopL})`, desktop: `(min-width: ${size.desktop})`, desktopL: `(min-width: ${size.desktop})`, };
Reveal answer.
What is Async/Await?
id:64
The Async keyword before a function means that a function returns a promise. The await keyword only works inside Async functions, and makes JS wait until that promise settles and returns its result
Acronyms
Reveal answer.
What is BEM?
id:81
Block - Element - Modifiers Block - should represent a block of design, such as a nav, header, footer // should use a hyphen delimiter .stick-man Element - individual elements which make up the block // two underscores .stick-man__head Modifiers - .stick-man--blue // two hyphens
Functions
Reveal answer.
What are void functions?
id:53
Void functions are functions which do not return a value.
Acronyms
Reveal answer.
URI vs URL vs URN?
id:111
Uniform resource identifier/locator/name URI is the id of a resource
Reveal answer.
What is string interpolation?
id:161
String interpolation is replacing placeholders with values in a string literal, using template literals.