Help ! I'm stuck. #JavascriptCalculator

Help ! I'm stuck. #JavascriptCalculator
0

#1

Here is a link to my Javascript calculator:
http://codepen.io/AdeyinkaAdegbenro/pen/ZpmrQN
The text keeps displaying backwards, anytime a negative answer is gotten as answer, or a decimal number and other operators are pressed. I need fresh eyes on the code, to see what I can do to fix that. Thanks.


#2

I notices when I inspected the html that the value for the #info-box was properly displayed with the negative sign before the number. Not sure why you’re including the bootstrap with ltr direction. Once I changed the direction on the body

body { direction: ltr; }

the minus sign displays as expected. Then you’d only need tot flow the actual calculator to the right


#3

thanks for your time, I just realized that the default text direction for text-align: right (which I used) is direction:rtl, thanks to you. Good bless.