Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Latest commit

 

History

History
16 lines (14 loc) · 439 Bytes

readme.md

File metadata and controls

16 lines (14 loc) · 439 Bytes
  • A method cannot be passed as a parameter in JS:
    (arg, methodName) => {
        const whatever = calc(arg);
        whatever.methodName(); // <-- This won't work.
    }

Reminder:

  • You can directly modify a CSS attribute:
    const selector = document.querySelector('class|id|tag'); 
    selector.style.cssAttribute = `value`;
    // e.g: hand('second').style.transform = `rotate(${...}deg)`;