javascript number global methods part 3 in html and css on January 07, 2022 Get link Facebook X Pinterest Email Other Apps javascript number global methods part 3 in html and css Html part <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>new</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>javascript number global method</h1> <br><br> <br> <h2 id="start"></h2> <script> let x = new Date("2052-1-5"); document.getElementById ("start").innerHTML = Number(x); </script> </body> </html> Html part *{ margin:0; padding: 0; box-sizing: border-box; } body{ width: 400px; height: 400px; margin-left: 100px; margin-top: 50px; background: #333; color: #fff; } Comments
Comments
Post a Comment