I'm creating a calculator using VUE JS. I was wondering how to do exponents in that if I had something like "8^3", how would I split the string into the two separate digits?
Asked
Active
Viewed 61 times
0
-
Please provide more context. Generally there is [`split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) but I get the feeling you need a more universal solution here – CherryDT Aug 16 '20 at 10:57
-
Please do some research before asking a new question. Finding the answer to such a basic question is usually just a quick search away. – str Aug 16 '20 at 10:58