Start with a style guide, not with how but with you. So, the developers are convinced to follow that. Meaningful names for functions 5 Second rule If you make your code readable in 5 seconds, then its easily maintainable. Make the intentions clear. Organize for...
See the Pen Particle Random by Vetrichelvan Jeyapalpandy (@vetri02) on CodePen. Awesome lessons from chriscourses...
var state = {'veg': 'potato'} //All Same state = $.extend({}, state, {'fruit': 'apple'}) // jQuery state = Object.assign({}, state, {'fruit': 'apple'}) // JS state = { ...state, 'fruit': 'apple'} //ES6 Spread operator Notice the above code it does the same thing. Spread operator is an easy to use syntax for object/...
Underscore.js one of the powerful utility JS libraries out there. In this post am goin to explain some of the functions and how they can be mixed and matched to get our required functionality. _.filter: _.filter it looks through the list we pass and...
Using Javascript has an ease, you can achieve the same result by doing it in different ways. Here am going to discuss about the performance implications of the same. Lets start with string to number conversion. The usual way of string to number conversion is...