gistlib
To answer your question, in JavaScript, you can simply write 2 + 2 to get the result. Like this:
2 + 2
index.tsx2 + 2; // Output: 4 20 chars2 lines
2 + 2; // Output: 4
There is no need to generate any additional code or perform any unnecessary operations.
gistlibby LogSnag