I am learning JS separately and was confused to run into setProperty(). Is that a custom property that code.org has created for the students? I wish they would state this because I would like to differentiate between whats vanilla JS and a library they use.
For instance, console.log() is vanilla JS, but they dont really differentiate.
Im actually more confused because you need to use dot notation when using setProperty I believe.
MDN: CSSStyleDeclaration.setProperty() - Web APIs | MDN
Code.org uses its own interpreter for the App Lab and Game Lab platforms. If you’d like to use vanilla JS, use Glitch.com, Replit.com, or Sololearn.com.
So they use a custom interpreter or library? For instance, in code.org there is a setScreen().
Is that considered a “function” that is from a code.org library? Or is that something else, I just dont know how to contextualize this to students.
I just call it a built-in function, since it is, well, a function.
tldr; interpreter: translates code, libraries: add onto code
Everyone is saying this. However, an interpreter in other aspects of computer science translates code into machine code, not into a higher-level language usually. Does code.org have documentation for this or anything?
Don’t exaggerate. It is 200x slower.
Jeez, sorry. I didn’t know the exact number.
Just kidding. But the guy who wrote the interpreter says 200x.