Search
JavaScript Glossary: String trim()
25.3.2019
Basics
This method removes whitespaces from the start and end of the calling string. It removes spaces, tabs, no break spaces etc. It returns a new string stripped of whitespaces from both
JavaScript Glossary: String indexOf()
25.3.2019
Basics
This method checks for the first appearance of a provided string argument within the calling string and returns the index. It returns -1 if the string argument can’t be
JavaScript Glossary: String includes()
19.3.2019
Basics
The includes method checks a provided string against the calling String object, it returns true if the calling String object contains the provided string a
JavaScript Glossary: String concat()
17.2.2019
Basics
This method is used to join the calling string and the provided string arguments. It returns a new String object containing the calling string and the provided arguments . If no arg
JavaScript Glossary: Array unshift() Method
17.2.2019
Basics
The unshift array method appends a number of values to the start of a given array. It then returns the new length of the array. This method can take a number of argumen
Where Do You Nest Your Sass Breakpoints?
11.2.2019
I love nesting my @media query breakpoints. It's perhaps the most important feature of Sass to me. Maybe I pick a method and do it like this:
.element {
display: grid;
grid-template-columns: 100px 1fr;
@include breakpoint(baby-bear) {
display: block;
}
}
That's straightforward enough....
JavaScript Glossary: Array .splice() Method
8.2.2019
Basics
The splice array method changes an existing array by removing, adding and/or replacing specified elements from it. The method mutates the array and returns an array of
JavaScript Glossary: Array .slice() Method
8.2.2019
Basics
The slice array method copies a given part of an array returning the selected part as an array. It doesn’t mutate the given array rather, it returns a new array
JavaScript Glossary: Array .shift() Method
8.2.2019
Basics
This method takes out the first element from an array and returns it. The shift method mutates the array during this process, reducing its length
JavaScript Glossary: Array .reverse() Method
8.2.2019
Basics
This method changes the position of elements within the array. The first element goes to the last position and the last element goes to the first position. The method returns the re
JavaScript Glossary: Array .push() Method
8.2.2019
Basics
This methods appends one or more value to the last position of an array. This method mutates the array returning the new length of the array.
let
JavaScript Glossary: Array .pop() Method
8.2.2019
Basics
This method takes out the last element from an array and returns it. The pop method mutates the array during this process reducing its length
JavaScript Glossary: Array .map() Method
8.2.2019
Basics
The map() method takes a callback method that performs an operation on the elements in the array. It returns a new array containing the resulting values of running the
JavaScript Glossary: Array .includes() Method
8.2.2019
Basics
This method checks if an array contains a given element. The return value for this method is a Boolean. true if the element exists in the array and f
JavaScript Glossary: Array .forEach() Method
8.2.2019
Basics
The forEach() method takes a function that performs an action on each of the elements in this array.
[1, 2, 3, 4, 5].forEach(functio
JavaScript Glossary: Array .toString() Method
8.2.2019
Basics
This method returns a String representation of the elements withing the calling array. This method is somewhat similar to the join() method. It returns a s
JavaScript Glossary: Array.some()
8.2.2019
Basics
This method checks if any of the elements contained in an array passes a set test. If at least one of the elements passes this test, true is returned. This method only
The Ultimate Guide to JavaScript Algorithms: Finding the Longest Word In a Sentence
7.2.2019
Finding the longest word in a string of text is a very common algorithmic challenge in the JavaScript world. In this article we examine three ways to solve this challenge, with each method showcasi
JavaScript Glossary: Array .every() Method
6.2.2019
Basics
The every method checks that each element in an array passes a set test. This method will return true if all the elements pass the set. Once an element tha
Table design patterns on the web
28.1.2019
Chen Hui Jing has tackled a ton of design patterns for tables that might come in handy when creating tables that are easy to read and responsive for the web:
There are a myriad of table design patterns out there, and which approach you pick depends heavily on the type of data you have and...