I ended up down a JavaScript wormhole the other day and found a few interesting sites I bookmarked and wanted to save the context. Remember – I’ve done a lot of IBM BPM development which uses ES5 and a very limited scope of JavaScript. There isn’t really a need for any of the functionality mentioned below, but it was still nice to learn about.
https://flaviocopes.com/javascript-iife/
Immediately-invoked Function Expressions(IIFE) – I’m pretty sure I’ve seen this pattern before…essentially you’re defining a function that is invoked as soon as it is created. The context for this was a security wrapper that was enforcing strict mode.
https://stackoverflow.com/questions/5378559/including-javascript-in-svg
JavaScript in SVG – Sadly I had no idea JavaScript runs inside SVG markup. I actually didn’t really know what SCG markup was aside from normally used for pictures and animation. But that Stackoverflow article provides code for a neat little ball animation that can be copy/pasted into an svg file and run locally, so it is a neat way to learn about JavaScript and SVG.
iCyberChef – So I’m still not 100% sure what this site is used for…but it came up in a security article as well because apparently it was broken recently. I’ll follow-up on this again later.
https://www.w3schools.com/jsref/prop_loc_hash.asp
Location Hash – So I’m not entirely sure of the use case for only looking at the anchor part of a URL, but I’m sure its out there…like this, which talks about a SPA scenario and since IBM BPM isn’t really a SPA application, I’m just not that familiar with the pattern. But I’ll save this for later.