Closed NikanZeyaei closed 3 years ago
Thanks for the contribution. I think many people are still using the old convention. Maybe we should write something which can support both the conventions?
Thanks for the contribution. I think many people are still using the old convention. Maybe we should write something which can support both the conventions?
Using the old JavaScript conventions like var
can be dangerous because of the scoping issues
Also the only browser that doesn't support Async/Await's syntactic sugar in 2021 is Microsoft's Internet Explorer
I think atleast the var
issue in the codebase should be addressed because it can be dangerous and may lead to bugs if you decide to grow the project
You are right. Can you please raise one pull request just with var
to const
changes. If you are interested in growing this project with a sustainable approach, you are always welcome. 😊
You are right. Can you please raise one pull request just with
var
toconst
changes. If you are interested in growing this project with a sustainable approach, you are always welcome. 😊
Sure
Converted all the function statements to arrow functions and also converted the
.then
s to the new ES6's Async/Await syntax Also the use of thevar
keyword is prohibited in modern JavaScript so I converted all the thevar
s to their appropriateconst
s andlet
s