I am working on a Law of Exponents discovery task. Students are to look at Expressions, Expanded Form, and Single power in the table and then follow the pattern to fill in the rest. I borrowed code from a similar activity but when I tried to use exponents in the correct answers, I started getting errors. Slide 3 is where it all began.

I think what youâ€™re saying after looking at your code is that your attempt to replace the â€ścorrectâ€ť answers is not working for you. The values (in blue) must be a single number. For anything that would require even a basic calculation, like an exponent, youâ€™ll need to use numericValue or simpleFunction.

figure7number = numericValue(`10^{7}`)

Note that this only compares the value of the expression and not its form, so a student copying and pasting the original expression would still get it right. Also, not sure where you got your cdot symbol because the calculator isnâ€™t recognizing it. Use * when typing and it will automatically convert.

Here I edited it with some pattern matching instead.