Menu
  • Git
  • JavaScript
  • CSS
  • SQL
×

Round Decimal Places in JavaScript - The Reliable Way

Even the simplest rounding methods in JavaScript can have serious accuracy problems. And that's what I'm trying to fix here. Let's figure out how to round to N decimal places reliably in JavaScript.

JavaScript

Time and Date in Real-Time with JavaScript - Step by Step

Learn how to show a time indicator on the screen that updates in real-time. Ideal for making clocks, chronometers or countdown, the process is the same and uses Date and setInterval.

JavaScript

How to compare Date and Time in JavaScript - Step by Step

Comparing dates is a recurring feature in any application. Whether it's the same date, earlier or later than the other date. Fortunately, JavaScript already has built-in features to do that. You can use the Date.getTime() method.

JavaScript

Difference Between Dates in JavaScript - Step by Step Explained

Dates are essential information in any application. It is very common to have to know the difference in months, days, or even seconds between one date and another. To help, I have written this useful step by step for any case.

JavaScript

How to Remove a Local or Remote branch in Git? Easy Tutorial

From time to time we end up accumulating several branches in our repositories. Here's a tip on how to delete a branch both locally and remotely.

Git

How to Rename a Git Branch, Local or Remote (The Right Way)

Learn how to rename branches in Git the right way. According to the documentation, to rename a local branch in git there is only one command: git branch -m "new-name". But learn the right convention.

Git

What's the Use of git fetch? - fetch vs pull Comparison

The git fetch command can be used to download all commits from the remote repository without affecting your local code. Basically, git pull does first a git fetch followed by a git merge origin/master.

Git

How to Clone a JavaScript Object with Efficiency

Learn how to clone JavaScript objects efficiently, be it a shallow copy or a deep clone of the object.

JavaScript
  • 1
  • 2
  • 3
Metring
Articles Privacy Policy Github
© Copyright 2023