Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener('DOMContentLoaded', init);
- function init(){
- function ejer1() {
- var name = prompt('Escribe tu nombre:');
- var age = prompt('Escribe tu edad:');
- var estado = prompt('Escribe tu estado civil:');
- alert('Nombre: ' + name + '\nEdad: ' + age + '\nEstado civil: ' + estado);
- }
- ejer1();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement