SHARE
TWEET

Untitled

a guest Oct 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.     <title>Document</title>
  8. </head>
  9. <body>
  10.    
  11. </body>
  12. <script>
  13.     let variable = 17
  14.     /*
  15.         operadores logicos
  16.         > mayor
  17.         < menor
  18.         == igual
  19.         <= menor o igual
  20.         >= mayor o igual
  21.         !== distinto
  22.    
  23.     */
  24.     if(variable >= 18){
  25.         console.log("eres adulto")
  26.     }
  27.     //false
  28.     if(variable <= 18){
  29.         console.log("no eres adulto");
  30.     }
  31.     // true
  32.     if(variable !== 18){
  33.         console.log("tambien eres adulto")
  34.     }
  35.    
  36. </script>
  37. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top