Remark : javascript return null false true 정확한 사용 이해
1.value return
| 1 2 3 4 5 6 | // 곱의 결과값 리턴 function myFunction(a, b) {   return a * b;    } | 
2.true false 명확히 리턴
| 1 2 3 4 5 6 7 8 9 | function isEqual(num1, num2) {     if (num1 == num2) {         return true;     } else {         return false;     } } | 
3.Validate시 null, 공백 값 사용시 그 기점에서 stop 됨// test 바랍니다.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <!DOCTYPE html> <html> <head>     <title>         Return false     </title>     <script>         function validateForm() {             var x = document.forms["myForm"]["fname"].value;             if (x == "") {                 alert("Please Fill all the entries");                 return false; //반드시 false 명시             }         }     </script> </head> <body style="text-align:center;">     <h1 style="color: green;">              Validate Test     </h1>     <form name="myForm"            action="/action_page.php"            onsubmit="return validateForm()"            method="post">         Name:         <input type="text" name="fname">         <input type="submit" value="Submit">     </form> </body> </html> |