You can see browser compatibility for ES6 here
https://kangax.github.io/compat-table/es6/
Make sure to have the “show obsolete platforms” checked. You can see that IE has very poor support for updated JS syntax and features.
A few solutions for this are to use transpilers like Babel to convert new code features to basically look like and work like old code.
That and the use of poly fills.
CSS has a lot of new features that also aren’t supported on all old browsers. It’s a challenge to be sure when writing good css to make. Using something like Bootstrap helps a lot because they’ve done all the hard work of compatibility for you! But keep an eye out. Latest bootstrap dropped support for some older browser versions.
i have removed onclick=calculate() but using simple javascipt its still not working meaning calculate button seems to be not working when i copied your code from codepen to notepad and saved as .html wiith UFT-8
I see the problem.
What do you think the problem is?
you need to understand that its just a week i started javascript learning, so please oblige i really can’t think where the problem is.
I am using traditional JS and you must be using Jquery to fix this issue, I want to learn basic javascript before i enter into advanced one
@zuzupus
I understand… you’ve just started.
I think for now we should let this one rest. I’m not going to answer any more questions about this code. I know you’ve just started with Javascript, and this is all a little over your head. So for now, let’s leave this one alone. If I continue trying to help with this code I think it’s a waste of both your time and my time.
So let’s let it rest.
At some point in the future, I believe you will fully understand this code. Come back to it again later when you’re more confident to diagnose the problems. So keep going with Free Code Camp lessons - it will really pay off! If you have any questions about the content in the Free Code Camp lessons, please ask in the forum.
(btw I am just using plain Javascript. No Jquery. It’s just updated Javascript features that were introduced with ES6 - that’s something that the Free Code Camp course discusses I believe in the new curriculum.)
Happy learning and happy coding, @zuzupus! 
1 Like