I was asked this question in an interview sitting a couple of months ago. I'm pretty sure some of you really ever thought of changing something in JS language.
I will be happy to know your opinion in the comment.
I was asked this question in an interview sitting a couple of months ago. I'm pretty sure some of you really ever thought of changing something in JS language.
I will be happy to know your opinion in the comment.
For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (27)
Make it never happen in the first place :P.
Ref: destroyallsoftware.com/talks/wat
Only if you did this, almost every site would break.
I would add something like the extension methods found in C#
You're removing a lot of stuff that makes JS a joy to work with
I agree, some of them where a bit extreme.
I also agree that some of the things like the null bug and such are a pain in the arse. But I don't think we should remove classes or force arrow function to only accept one argument. I like the freedom JS gives you, though that's also a bad thing about it :P
You might not like classes, but they have a place and can be really usefull. Not eveyone likes going all functional, to that peple I say, it's okay to be wrong xD joking, I do enjoy both
Strictly speaking, JS still doesn't have classes. It's just sugar to make it look like it does. Unnecessary really
I know XD
DATE!!!
The date and time in javascript is so messed up, the community had to create libraries for basic tasks like date and time management.
Luckily, there is a new API coming called the Temporal API. Fingers Crossed 🤞
Great update!
I agree with you @lukeshiru !
Thanks for your opinion, man!
if I had a magic wand I would make the bugs and errors in javacsript more informative so that we knew how to fix them without spending hours and days even :)
I will be much more productive if below are available:
JavaScript
stack
,queue
,heap
/priority_queue
,trie
, etc from c++/java/pythonbinary_search
,upper_bound
,lower_bound
, etc from c++/java/python.forEach
is slow most casesNode.js
function main()
if given, with command lineargs
to itGreat suggestions, man. Having an inbuilt algorithm data structure will be fantastic.