This is my first time using javascript so explain to me like I'm five, please.
When I use the console I tested it out by using the command /js 2+2 it then responded with "/js Javascript code" so I tried /js (2+2) and /js (2+2); thinking the syntax was incorrect, I still got the same response. After that was unsuccessful I spent around 3 hours trying by installing different versions of Spigot, Java, and ScriptCraft but to no avail. If anybody knows what's going on I'll accept any help.

This is my first time using javascript so explain to me like I'm five, please.

When I use the console I tested it out by using the command /js 2+2 it then responded with "/js Javascript code" so I tried /js (2+2) and /js (2+2); thinking the syntax was incorrect, I still got the same response. After that was unsuccessful I spent around 3 hours trying by installing different versions of Spigot, Java, and ScriptCraft but to no avail. If anybody knows what's going on I'll accept any help.