From 3400161f6cd75ecd18d08d5ac53975386fc29dde Mon Sep 17 00:00:00 2001 From: Hitesh Choudhary Date: Mon, 26 Dec 2022 07:43:03 +0000 Subject: [PATCH] discussion on variables --- .devcontainer/devcontainer.json | 3 ++- 01_basics/01_variables.js | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 01_basics/01_variables.js diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d453a55c..6a48cb05 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -24,7 +24,8 @@ ], "settings": { "editor.fontSize": 32, - "terminal.integrated.fontSize": 24 + "terminal.integrated.fontSize": 24, + "editor.wordWrap": "on" } } diff --git a/01_basics/01_variables.js b/01_basics/01_variables.js new file mode 100644 index 00000000..ab0d402b --- /dev/null +++ b/01_basics/01_variables.js @@ -0,0 +1,22 @@ +const accountId = 144553 +let accountEmail = "hitesh@google.com" +var accountPassword = "12345" +accountCity = "Jaipur" +let accountState; + +// accountId = 2 // not allowed + + +accountEmail = "hc@hc.com" +accountPassword = "21212121" +accountCity = "Bengaluru" + +console.log(accountId); + +/* +Prefer not to use var +because of issue in block scope and functional scope +*/ + + +console.table([accountId, accountEmail, accountPassword, accountCity, accountState]) \ No newline at end of file