специальные значения





js/script.js
  • var str0 = 2.7976931348623157e+308;
  • var str1 = 'Hello World256';
  • var res;
  •  
  • function funMake() {
  •  document.write(str0 + '<br />');
  •  
  •  res = parseInt(str1);
  •  document.write(res + '<br />');
  • }
var str0 = 2.7976931348623157e+308;
var str1 = 'Hello World256';
var res;

function funMake() {
 document.write(str0 + '
'); res = parseInt(str1); document.write(res + '
'); }


index.html
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <script src="js/script.js"></script>
  • </head>
  • <body>
  • <script>
  •  funMake();
  • </script>
  • </body>
  • </html>
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <script src="js/script.js"></script>
  • </head>
  • <body>
  • <script>
  •  funMake();
  • </script>
  • </body>
  • </html>