15 lines
295 B
JavaScript
15 lines
295 B
JavaScript
// num = parseInt(prompt("Can I have num:"));
|
|
|
|
// Dada una palabra sacar la cantidad
|
|
// i = 1
|
|
word = prompt("Introduzca una palabra")
|
|
|
|
// while (i < 10) {
|
|
// document.write(`${i}<br>`);
|
|
// i = i + 2;
|
|
// }
|
|
|
|
for (let i = 0; i < word.length; i++) {
|
|
document.write(`${word.charAt(i)}<br>`)
|
|
}
|