I can't understand this code's syntax. Can someone help describe what it means?
const el = () => document.createElement('span');
const set = (el, c) => (el.style.backgroundColor = c, el);
I can't understand this code's syntax. Can someone help describe what it means?
const el = () => document.createElement('span');
const set = (el, c) => (el.style.backgroundColor = c, el);