true false 判定スイッチ 反転

<script> var bool = false; function reverse(){ if (bool == false) {return true} } if (reverse()) {console.log('hello')} var bool2 = false; function reverse2() { bool2 = !bool2; } reverse2(); if (bool2) {console.log('hello')} </script>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.