Posts in “JavaScript”
- Optional chaining operator in JavaScript
- JavaScript logical operators and the new nullish coalescing operator
- Sort an array with another array
- Match text between two markers with regex
- Reduce: the multitool of JavaScript array manipulation
- Dealing with URL parameters in JavaScript/TypeScript
- Understanding React children
- Currying in JavaScript
- Set multiple React refs in one variable
- How to MDX with Gatsby
- The unexpected mutability when editing nested arrays
- Force re-render function React component (or class component)
- Render draft posts locally in Gatsby
- React data visualizations | No dependencies, just some CSS
- JavaScript: make arrays of size | how to create filler arrays of varying length
- Access random element in an array, in a short and concise manner
- JavaScript iterators tutorial with examples | introduction to the iterable object
- Doing more complex conditional logic, getting more than two different values
- Copying text into the system’s clipboard with JavaScript
- A beginner-friendly guide to regex in JavaScript
- Listen key combinations with JavaScripts
- Few JavaScript loops you probably hadn’t thought of
- Remove a class name from multiple elements with pure JavaScript
- The new ES6 for...of loop
- Self referencing object literal in JavaScript
- Working with JavaScript arrays
- JavaScrip forEach loop
- Common JavaScript array methods and Object.keys()
- jQuery's .closest() function, and pure JavaScript alternatives
- Append and prepend elements with pure JavaScript
- Check if string starts with, or ends with another string, using JavaScript
- Optional parameter handling in JavaScript functions
- RequireJS part 2: optimizing scripts with r.js
- JavaScript: check if function parameter is a string or an object
- Add, remove, and toggle CSS classes with JavaScript
- Getting DOM elements with JavaScript
- Different methods to make DOM elements in jQuery
- Detect click with pure JavaScript
- How to build a custom lightweight jQuery
- How to build a custom zepto
- Setting and reading cookies with JavaScript
- Check if element exists in jQuery
- How to open a popup window with jquery