From 1e5c0a4c0f3e1ab16b8fceaf749181fa5a1f7294 Mon Sep 17 00:00:00 2001 From: Aniket Botre Date: Tue, 5 Dec 2023 12:18:11 +0530 Subject: [PATCH] Update module02.ts Corrected the variable names :- firstname and lastname to firstName and lastName which caused error in the program --- code/module-02/m02-start/module02.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/module-02/m02-start/module02.ts b/code/module-02/m02-start/module02.ts index 7f259fa..f9e638f 100644 --- a/code/module-02/m02-start/module02.ts +++ b/code/module-02/m02-start/module02.ts @@ -15,7 +15,7 @@ firstName = 'Rebecca'; lastName = 'Smith'; age = 42; ukCitizen = false; -fullName = firstname + " " + lastname; +fullName = firstName + " " + lastName; if (ukCitizen) { console.log("My name is " + fullName + ", I'm " + age + ", and I'm a citizen of the United Kingdom."); @@ -80,4 +80,4 @@ console.log(whichMonths("Fall")); console.log(randomNumbers); - \ No newline at end of file +