20 JavaScript Shorthand Techniques that will save your time. The shorthand techniques of any programming language help you to write more clean and optimized code and lets you achieve your goal with less coding. Let’s discuss some of the shorthand Techniques of JavaScript one by one.
•4m read time• From medium.com
Table of contents
1. Declaring variables2. Assigning values to multiple variables3. The Ternary operator4. Assigning default value5. AND(&&) Short circuit evaluation6. Swap two variables7. Arrow Function8. Template Literals9. Multi-line String10. Multiple condition checking11. Object Property Assignment12. String into a Number13. Repeat a string for multiple times14. Exponent Power15. Double NOT bitwise operator (~~)16. Find max and min number in array17. For loop18. Merging of arrays19. Deep cloning of multi-level object11 Comments
Sort: