Generation

generate functionMon, 22 May 2023

programa que pida 10 nombres con su edad y fecha de nacimiento donde se captura el nombre con mas edad y su fecha de nacimiento

Script var name = 'John'; var age = 26; var isMarried = 'no'; if (isMarried === 'yes') { console.log(name + ' is married!'); } else { console.log(name + ' will hopefully marry soon :)'); } isMarried = true; /* == does type coercion === no type coercion */ if(isMarried) { console.log('YES!'); } var age = 20; if (age < 20) { console.log('John is a teenager'); } else if (age >= 20 && age < 30) { console.log('John is a young man.'); } else { console.log('John is a man.'); } var job = 'teacher'; job = prompt('What does John do?'); switch (job) { case 'teacher': console.log('John teaches kids.'); break; case 'driver': console.log('John drives a cab in

Questions about programming?Chat with your personal AI assistant