Javascript calculator can't pass test

Why test failed on this project:

https://codepen.io/dany05/pen/zyJbmm?editors=0110

Some how your display is showing a new line \n after the result, try getting rid of it

Element with with id=“display” should show 0 : expected ‘0\n’ to equal ‘0’
Numbers do not display correctly within id=“display” : expected ‘123\n’ to equal ‘123’
An input of 0 0 0 should display 0 : expected ‘0\n’ to equal ‘0’
An input of “5 . . 0” should display 5.0 : expected ‘5.0\n’ to equal ‘5.0’
The sequence “5 * - + 5” = should produce an output of “10” : expected ‘10\n’ to equal ‘10’
The sequence “5 - 2 = / 2 =” should produce an output of “1.5” : expected ‘1.5\n’ to equal ‘1.5’

You may still have a couple of computation issues left but after fixing that new line issue at the end of your output, it should pass a majority of the failing tests.

Thanks. I don’t know why <h2></h2> add a \n.