From c01b950eee96ef43f7fac654bf98b1f7eb4bfed0 Mon Sep 17 00:00:00 2001 From: Chalarangelo Date: Wed, 15 Dec 2021 19:32:45 +0200 Subject: [PATCH] Fix reversed dates --- blog_posts/javascript-iife.md | 4 ++-- blog_posts/javascript-prevent-string-being-escaped.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blog_posts/javascript-iife.md b/blog_posts/javascript-iife.md index da670ac11..f1f058e3b 100644 --- a/blog_posts/javascript-iife.md +++ b/blog_posts/javascript-iife.md @@ -5,8 +5,8 @@ tags: javascript,function authors: chalarangelo cover: blog_images/tropical-waterfall.jpg excerpt: An Immediately Invoked Function Expression (IIFE) is a JavaScript trick that trips up many developers. Here's what you need to know. -firstSeen: 2021-06-14T12:00:00+03:00 -lastUpdated: 2021-06-12T19:30:41+03:00 +firstSeen: 2021-06-12T19:30:41+03:00 +lastUpdated: 2021-06-14T12:00:00+03:00 --- An **Immediately Invoked Function Expression** (IIFE for short) is a JavaScript function that is immediately invoked as soon as it's evaluated by the JavaScript runtime. Here's what it looks like alongside a roughly equivalent piece of code: diff --git a/blog_posts/javascript-prevent-string-being-escaped.md b/blog_posts/javascript-prevent-string-being-escaped.md index 48c3d2b12..565610409 100644 --- a/blog_posts/javascript-prevent-string-being-escaped.md +++ b/blog_posts/javascript-prevent-string-being-escaped.md @@ -5,8 +5,8 @@ tags: javascript,string authors: chalarangelo cover: blog_images/glass-blowing.jpg excerpt: Strings in JavaScript can be escaped in various ways. But what if you need to prevent a string from being escaped? Here's a handy trick for that. -firstSeen: 2021-06-17T12:00:00+03:00 -lastUpdated: 2021-06-12T19:30:41+03:00 +firstSeen: 2021-06-12T19:30:41+03:00 +lastUpdated: 2021-06-17T12:00:00+03:00 --- By default, when JavaScript sees an escape character (`\`), it will escape the character after it. However, there are cases where you might not want this behavior (e.g. when you want to store a Windows path as a string). For these cases, you can use a template literal and the `String.raw()` tag function: