2 ms·
Yes, this is a shortcut for: const h1 = function() { return makeElement('h1'); } Arrow functions without arguments need empty paranthesis. They
by k__ 10y ago
Yes, this is a shortcut for:
const h1 = function() {
return makeElement('h1');
}
Arrow functions without arguments need empty paranthesis.
They also have an implicit return if you don't use {}