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

iphone - Using nested NSDictionary with Picker -

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

php - accessing mysql using different server to which db connection data is located -