Recently, I got the chance to work on a backbone application where I understood the primary importance of selectively using javascript built-in objects for our operations regardless of the framework. Most of the times we pledge our allegiance to our lords (frameworks) and libraries and follow them blindly because we think that they are capable of doing everything, sometimes losing out on javascript best practices. ![]() (Oh! The Internet is the deep blue sea I was talking about).Īs frontend developers most of the times we do not rely on vanilla javascript for everything that we want. Although most of us do not venture all the way down into the darkness, we still precisely like to get what we want. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. ![]() You are on a boat in the middle of a deep blue sea. Micro-optimization of the for loop that works in some other languages. The internet is a great place to find information, but there is one teeny-tiny problem. Generally, for/of is the most robust way to iterate over an array in JavaScript. The for.of loop is slightly ahead of the rest, but the difference is not significant.
0 Comments
Leave a Reply. |