16 lines
270 B
Plaintext
16 lines
270 B
Plaintext
const adj = ["super", "wonderful", "bad", "angry", "careful"];
|
|
|
|
|
|
|
|
function myFun() {
|
|
|
|
const question = prompt("what is your name?");
|
|
|
|
const nameAdj = Math.floor(Math.random() * adj.length);
|
|
|
|
console.log(adj[nameAdj] + " " + question );
|
|
|
|
}
|
|
|
|
myFun();
|