View Git "undo" history
Learn how to view your "undo" history using git reflog and reset your repository to a previous state.
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Learn how to view your "undo" history using git reflog and reset your repository to a previous state.
Effortlessly create upstream branches on push by enabling a simple Git config setting.
Need to reload the current page using JavaScript? Here's the best way to do it, as well as some alternatives.
CORS (Cross-Origin Resource Sharing) trips up many developers, but it's pretty easy to wrap your head around.
Get started with logical operations in JavaScript with this collection of helper functions.
The Node.js test module is a new testing tool that's still in its early stages. Learn more about it in this short introduction.
Learn how to type check objects at runtime using the powerful Proxy object in JavaScript.
Turns out the Proxy object is not extensible, but there's a way around its limitations.
Using the Proxy object, we can create dynamic getters and setters for objects in JavaScript.
A quick introduction to the JavaScript Proxy object and where it can be used.
Which method do you reach for first? What are the differences between them? Let's find out!
While these two properties are very similar, there are some key differences that you should be aware of.
Trailing commas are not without controversy. Here's why I think you should use them.
Scroll listeners can easily become a performance bottleneck for your web application. Here's how to fix that.
Learn how to eliminate the annoyance of copying dollar signs ($) along with terminal commands from the web with a simple bash alias.
A short guide on how to correctly construct a URL in JavaScript.
Make your HTML documents more SEO-friendly by including these lines in your <head> element.
Ensure your HTML documents have a proper favicon by including these lines in your <head> element.
Ensure your HTML documents can be shared on social media by including these lines in your <head> element.
Ensure your HTML documents are properly structured by including these lines in your <head> element.
Learn everything you need to know about Big-O notation with this handy cheatsheet.
A quick reference for the window.location object.
Using Document.elementFromPoint() to easily get the element at a specific point on the page.
Avoid the naive approach and use a more robust method to edit URL parameters in JavaScript.