1

This function is a click handler.

const select = num => () => value += num;

It has 2 arrows !!

  1. Why? Could you use: const select = (num) => value += num;

if not, why not.

  1. How would const select = num => () => value += num; ? look as a regular function
PRSHL
  • 626
  • 1
  • 7
  • 19

0 Answers0