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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -