Why always use arrow functions in Javascript.

Yesterday, I found a good reason to use arrow functions, sometimes I said the arrow functions is a fancy or shorter way to write functions but this is not the only benefit, the Arrow functions can keep the scope of his object without going to the global window, I will explain with code. let paymentmanager = { invoiceId: 1,…