microsoft / Web-Dev-For-Beginners

24 Lessons, 12 Weeks, Get Started as a Web Developer
https://microsoft.github.io/Web-Dev-For-Beginners/
MIT License
82.75k stars 12.28k forks source link

Variable not declared / ambiguous usage #1103

Closed suryakapila closed 1 year ago

suryakapila commented 1 year ago

Describe the bug Usage of undeclared const variables

To Reproduce Steps to reproduce the behavior:

  1. Go to '../src/index.js'
  2. Click on 'fucntion init()'
  3. const storedRegion = localStorage.getItem('regionName');
  4. variable 'regionName' not declared.

Expected behavior It should be replaced with 'region' as declared in the //form fields section of index.js

BamaCharanChhandogi commented 1 year ago

Hey @suryakapila, I have removed all 'regionName' Keywords in index.js. Check the PR #1120

Sivasish48 commented 1 year ago

I would love to work on this issue.

saragibby commented 1 year ago

Thank you for reporting this issue! Closing this issue has fixed has been merged on to the main branch.