From 593ed2de4787378dc15374ad761a1aa4fa2f79e4 Mon Sep 17 00:00:00 2001 From: Benjamin D'Hoop Date: Fri, 2 Feb 2024 15:23:31 +0100 Subject: [PATCH] Removed "this." of function block variable --- Projects/1-Beginner/IOT-Mailbox-App.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/1-Beginner/IOT-Mailbox-App.md b/Projects/1-Beginner/IOT-Mailbox-App.md index df66319c..2e20f0f2 100644 --- a/Projects/1-Beginner/IOT-Mailbox-App.md +++ b/Projects/1-Beginner/IOT-Mailbox-App.md @@ -72,7 +72,7 @@ class IOTMailbox { ? Math.random().toFixed(2) * -1 : Math.random().toFixed(2); console.log(`Mailbox state changed - lightLevel: ${lightLevel}`); - this.signalCallback(this.lightLevel); + this.signalCallback(lightLevel); this.lastLightLevel = lightLevel; } };