How to Format a Date with Luxon toFormat() in JavaScript
Luxon’s toFormat() turns a date into text in the layout you describe with tokens such as yyyy-MM-dd.
- Programming
- JavaScript
Luxon’s toFormat() turns a date into text in the layout you describe with tokens such as yyyy-MM-dd.
replaceAll() gives a new string with every match replaced, and leaves the original string as it was.
Put text between single quotes or double quotes to make a string in JavaScript. Both kinds give the same text.
Chain dots, such as order.customer.city, to read a value from an object that sits inside another object.
Write the object’s name, a dot and the property’s name to read a value from a JavaScript object.
Learn how to upgrade any version of Node.js to the latest LTS release on macOS without using Homebrew or other tools. Follow these simple terminal commands for a smooth update.
JSON.parse turns a JSON string into a JavaScript object or array in one line.
JSON.stringify turns a JavaScript object into JSON text in one call.
We will look at two of the comparison operators in JavaScript, Double Equals and Triple Equals. We will look at the difference between them with an example.