Kangax ES2015 quiz, expained - 2016-07-26
@kangax’ve created a quiz, it’s very interesting, the solution explains a tricky moment of spec.
@kangax’ve created a quiz, it’s very interesting, the solution explains a tricky moment of spec.
AngularJS 1.5 introduce .component()
helper method which is much simpler than the .directive()
definitions and advocates best practices and common default behavior.
Using .component()
will allow to write in Angular 2 style as well, which will turn transition to Angular 2 much easier.
Let’s compare the difference in syntax and the possibility of new abstraction.
Being a SOLID developer in JS isn’t so as straight forward as in other languages. Some developers consider functional approach. Others chose OOP style. Some stand in both line. And other think that having class is wrong and redundant and prefer factories. But still, SOLID principles are the basic pillars of object oriented programming.
But what are they?
There are many ways to copy object in Javascript but most of the time such operation doesn’t do what we expected.
Given: an array containing hashes of names
Return: a string formatted as a list of names separated by commas except for the last two names, which should be separated by an ampersand.
He has troubles with users ending or starting in a .
, and his user-array is a flat array of user-email-pairs, like so:
What’s the Difference Between Class & Prototype Inheritance?
This can be a tricky question, and you’ll probably need to defend your answer with follow-up Q&A, so pay special attention to learning the differences, and how to apply the knowledge to write better code.
If you are calculating complex things or execute time-consuming API calls, you sometimes want to cache the results. In this case we want you to create a function wrapper, which takes a function and caches its results depending on the arguments, that were applied to the function.
As a part of this Kata, you need to create three functions that one needs to be able to call upon an array:
Webpack simplifies web development by solving a fundamental problem: bundling. It takes in various assets, such as JavaScript, CSS, and HTML, and then transforms these assets into a format that’s convenient to consume through a browser. Doing this well takes away a significant amount of pain from web development.
It’s not the easiest tool to learn due to its configuration-driven approach, but it’s incredibly powerful. The purpose of this guide is to help you get started with webpack and then to go beyond the basics.