Is there any technical term to identify this?
Anki is not the most basic web environment you can get, so if you are learning JS you may be surprised in the result; but this doesn’t mean there is a fundamental incompatibility between JS and Anki.
Supported HTML/CSS/JS features depend on the client/OS you’re running Anki on. See for example:
If you know the browser, https://caniuse.com/ can serve as a lookup table.
AFAIK there’s no summary of currently used browser engines for all Anki clients. It’s a good idea though, and doesn’t seem that hard to implement.
Personally, I was positively surprised by Anki’s potiential as a JS learning environment. Working on things you actually make use of tends to be a very efficient way to learn new programming languages.
IIRC, Anki Desktop (through Qt Webviews) relies on chromium’s engines, that is, Blink (and V8 for the JS engine), AnkiWeb uses whatever you use, AnkiMobile uses safari’s engine (webkit — blink is a fork of webkit, so thy should behave similarly).
I agree having a motivating usage can is useful when learning a language, but at the same time coding JS in Anki is probably less practical that writing a “regular” JS script that can be tested in IDE-integrated web environment, for a tighter feedback loop.
StackOverflow is riddled with jQuery answers, but nowadays, there’s no real benefit to using this library.
You can easily spot jQuery by its
I learned new things here that I didn’t know.
More dynamic cards.
And being able to use on Mobile.
In general, you should see JS as an “extension” of HTML and CSS, in the sense that it complements these while being at the same level. Anki add-ons, on the other hand, are more though as ways to modify Anki’s behavior.