Yes, when coming from other coding experience, CL takes a bit of time to adjust your thinking. There are several types: string, latex (different from string), number, boolean, and some special types. Note - if you haven’t seen the documentation, it is very helpful, as it provides syntax as well as working examples of typical use cases.
When you use numericValue(), you are asking for a literal numeric value of whatever latex expression you have. So
numericValue(`2x`)
is like typing 2x into a handheld calculator and trying to get a number out of it. On the other hand,
numericValue(`2(3)`) will return 6.
So you can pass any valid latex to numericValue, and if that string when pasted into a desmos calculator row would yield a number, you will get that number returned.
On the other hand, if you are trying to do multiple calculations, you will want to know about the simpleFunction method. This takes a latex string as an argument (and additional arguments for whatever variables you want to define) and returns a function object that you can work with. For example,
myFunc = simpleFunction(`2x + y`, `x`, `y`)
val = myFunc.evaluateAt(3, 4)
str = "Your answer is `${val}`"
So in this case you would have str being “Your answer is 10". Notice the string interpolation with ${} - you can drop code into your strings this way, rather than using the content sink. You can create variables inside the CL and then in the note, at the bottom right, you will see a button to click to add in your variables. So you can set the note up how you want, and then add in the variables you want to monitor.
I hope that helps - feel free to ask follow-ups.
When you want to start matching structure of expressions, and not just numeric values, then it gets into a whole other concept of patten matching. In general you won’t want to match exact latex because of all the ways a student can enter the text. When you want to learn more about this, feel free to ask (you can also seach the forum for Patterns because there is definitely a lot there already).
In terms of exponents, fractions, and anything else, your best bet is to type your expression in Desmos, copy it, and then paste it into the CL. It will paste in as properly formatted latex for CL. For example, exponents need to have {} around them, etc.