iphone - How to display 2^3 in Javascript -


i building app using appcelerator needs display mathematical expression e.g 2^3 3 being small number above 2. there way express mathematical expressions in javascript?

notes

  • the text static bit of text.
  • language in use javascript.
  • runs on iphone/android simulator in appcelerator framework.
  • appcelerator escapes html

thanks in advance assistance.

"2"+"3".sup() should give correct formatting.

you can use .sub() subscript.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -