관리 메뉴

nalaolla

type 본문

javascript/fundamental

type

날아올라↗↗ 2016. 1. 7. 13:38
728x90
반응형
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Insert title here</title>
  6. <script type="text/javascript">
  7.     window.onload = function() {
  8.  
  9.         // add a boolean to a string
  10.         var boolValue = true;
  11.         var strngValue = "The value is " + boolValue; // results in "The value is true"
  12.         alert(strngValue);
  13.  
  14.         // add a number to a string
  15.         var numValue = 3.0;
  16.         strngValue = "The value is " + numValue; // results in "The value is 3"
  17.         alert(strngValue);
  18.     }
  19. </script>
  20. </head>
  21. <body>
  22.  
  23. </body>
  24. </html>


728x90
반응형

'javascript > fundamental' 카테고리의 다른 글

indexOf  (0) 2016.01.07
prompt  (0) 2016.01.07
onload  (0) 2016.01.07