Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let edad = 25;
- if (typeof edad === 'number' && edad >= 0) {
- console.log("La variable No esta vacía");
- } else {
- console.log("La variable Si esta vacía");
- }
- # Obtenemos
- La variable No esta vacía
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement