Does anyone know of a way to use a ternary operator to call a method of an object. For instance, something like: obj.[isTrue ? doTrue() : doFalse()]
You mean a link to a specific div? There's no real way to hide all the other content of a page unless the site has some JavaScript based on the URL or something.
Why are you adding arrays and objects?
Why would JS be hard to learn? Maybe hard to master?
Why are they even using prototypes?
Maybe puppeteer with chrome?