In Vanilla JavaScript and in React

setTimeout(doSomething(), 2000);

JavaScript Event Loop


Code Reuse

@mixin buttons {
border: none;
color: black;
background-color: inherit;
padding: 14px 28px;
font-size: 16px…

  1. the arguments object that is available inside all non-arrow functions.
  2. The jQuery object returned by a jQuery selector like ($(#main)).
  3. The objects that are returned from either document.querySelectorAll() or document.getElementsByClassName().
console:
{
0: 1
1: 2…


How conflicts are resolved in CSS

CSS Cascade


Hiding Variables and Closure in JavaScript

The JavaScript Event Loop

jQuery Selector VS getElementById

CSS: Cascade, Inheritance, and Specificity

SCSS Mixins


What’s the difference?

Setup


How JavaScript can be single threaded and asynchronous.


Hiding Variables

const counter = {
count: 0,
increment(x = 1)…


Mutating arrays

var array = [1, 2, 3, 4];const mutate = arr => {
arr.pop();
return arr;
}
mutate(array);console.log(array); // result [1, 2, 3]
var array = [1, 2…

Scott Price

Front End Developer with Information Security Experience. See my resume and portfolio at www.scottaprice.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store