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
Post a Comment