DEV Community

Cover image for 25+ JavaScript tips that can help you understand this programming language better
Pasca Vlad
Pasca Vlad

Posted on • Originally published at

25+ JavaScript tips that can help you understand this programming language better

If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on Twitter for more information about web development and how to improve as a developer. This article was first published on my Blog

1. Object Methods

2. Recursion Function

3. .slice()

4. Async and await

5. Proxy

6. Basic DOM terms and concepts

7. To-Do list code

8. How to hide a text using DOM events

9. How to create and use a class

10. How to select a character from a string

11. How to check if an object belongs to a class

12. Prototypes methods

13. How to import everything from a file

14. Destructuring

15. How you can use constructors and the this. keyword

16. How to use Prototypes

17. Everything you need to know about Modules

18. Why you should use Static Classes over Prototypes

19. How to find the lowest/highest number from an array

20. How to use .map() array method

21. How to use .sort() method

22. Arrow functions explained

23. How to use instanceof

24. How create a regular expression

25. exec() regex function explained

26. test() regex function explained

27. match() regex function explained

28. search() regex function explained

29. replace() regex function explained

The end

I hope found this useful and if you did please let me know. If you have any question feel free to DM me on Twitter .

Discussion (4)

hseritt profile image
Harlin Seritt • Edited on

Code readability is at the top of priorities when you're doing this for a living. Recursive functions in general can be difficult to read. Stick to for loops for what loops are intended for and use recursive functions when it makes sense to use them. I would advise heavily against substituting out for loops for recursive functions in general. Those who have to work on your code when you've moved on to that rock-star job in the concrete jungle will thank you :-) Otherwise, this is a nice article. Thanks for sharing :-)

mellen profile image
Matt Ellen

The example for number 2 (recursion) is the same as for number 1. Not sure if joke or mistake...

pascavld profile image
Pasca Vlad Author

no, thats a mistake, thanks for leetting me know

codeboi profile image
Timothy Rowell