Operador Menor o Igual que ( <= )
<!doctype html> <html> <head> <title>Menor o Igual</title> <script type = "text/javascript"> var x = 25; var y = 30; if (x <= y) { alert("'x' es menor o igual que 'y'"); } else { alert("'y' es mayor que 'x'"); } </script> </head> <body> </body> </html>Lo que verá en el navegador será:
<!doctype html> <html> <head> <title>Menor o Igual</title> <script type = "text/javascript"> var x = 30; var y = 30; if (x <= y) { alert("'x' es menor o igual que 'y'"); } else { alert("'y' es mayor que 'x'"); } </script> </head> <body> </body> </html>Lo que verá en el navegador será:
Si te hemos ayudado : )
Te agradeceríamos que apoyaras este proyecto
en:

0 comentarios:
Publicar un comentario