From 221565d7be41f621cf81a4a521dd38031b8692b6 Mon Sep 17 00:00:00 2001 From: MANISH WALIA Date: Mon, 14 Oct 2024 22:06:25 +0530 Subject: [PATCH] Added 'use strict'; directive to Chapter 04.0 for code correctness --- chapters/ch04.0-logtar-our-logging-library.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chapters/ch04.0-logtar-our-logging-library.md b/chapters/ch04.0-logtar-our-logging-library.md index 258e33d..af225f0 100644 --- a/chapters/ch04.0-logtar-our-logging-library.md +++ b/chapters/ch04.0-logtar-our-logging-library.md @@ -340,6 +340,9 @@ module.exports = { Let's try to test this. ```js + +'use strict'; + new Logger("OK"); // throws error new Logger(LogLevel.Debug); // works fine new Logger(); // works fine