code challenge submission
Overview
My submission for the code challenge!
Notes
I hope this works!
Hi, @amitian! Thanks so much for submitting the code challenge. I deeply related to the "Hope this works" line in your PR description – that's often my mindset when I'm programming, too, haha.
I left a few comments for your attention inline. I also noticed a funny behavior when trying out your implementation: When I successfully parse an address, then submit an empty string, the old address is not cleared from the DOM.
![]()
Can you take a look and respond before your interview? I look forward to meeting you! Meanwhile, hope you have a great weekend.
Wow, thank you for catching that! I didn't even think to test that out. It should be fixed now, so the old address will clear after the form submits. I also added an alert box to prevent the user from submitting an empty string--I'd love to learn a subtler/better-looking approach to take, though! a6f3271c0ac4189972819d9eda4570ba921fbd9e