DEV Community

Discussion on: Building a Simple URL Shortener With Just HTML and Javascript

Collapse
 
georgewl profile image
George WL • Edited

I'm curious why you're not using the more widely used const and let syntax tbh, it makes the code much clearer in my opinion and you have to worry less about scoping.

Also, have you tried the new Fetch API? It's much easier to work with than Ajax

Collapse
 
bauripalash profile image
Palash Bauri 👻

Agree with you 👍.
Actually I'm thinking of rewriting this article after my exams.