DEV Community

Discussion on: What will you change or add in javascript if you have a chance?

Collapse
 
manoharreddyporeddy profile image
Manohar Reddy Poreddy • Edited

I will be much more productive if below are available:

JavaScript

  • Add more data structures
    • stack, queue, heap/ priority_queue, trie, etc from c++/java/python
  • Add more algorithms
    • binary_search, upper_bound, lower_bound, etc from c++/java/python
  • Even shorter syntax constructs where possible
  • Make things faster where possible
    • .forEach is slow most cases

Node.js

  • Start execution from function main() if given, with command line args to it
Collapse
 
gomandev profile image
Gomandev

Great suggestions, man. Having an inbuilt algorithm data structure will be fantastic.