<meta charset="UTF-8">
<script>
function saltarLinea() {
document.write("<br>");
}
function imprimir(frase) {
document.write(frase);
saltarLinea();
}
var nombre = prompt("Ingrese su nombre")
var edad = parseInt(prompt(nombre + "¿Cuál es tu edad?"));
var tieneLicencia = prompt(nombre + "¿Tienes licencia? Responde S o N");
if (edad >= 18 && tieneLicencia == "s" ||edad >= 18 && "S" ){
imprimir(nombre + " usted puede conducir");
}
else{
imprimir (nombre + " usted no puede conducir");
}
</script>