Setting style doesn't work?
css, javascript
Solution
var four = Math.round(three) + "px";
Fiddle
Problem
Why does this script not work? ``` <!DOCTYPE html> <html> <head> <title>Hello StackOverflow!</title> </head> <body> <div id="testing"> <p>Bladybla</p> </div> <script> var one = window.innerWidth; var two = 5; var three = one / two; var four = '"' + Math.round(three) + "px" + '"'; document.getElementById("testing").style.marginTop = four; </script> </body> </html> ``` When I place an alert between `var four` and the `document.getElementById` is calculates the right value. The problem is in the `.style.marginTop =` . It doesn't print the calculated value. WHY? Thanks in advance, Jaapyse!