Exercise 6.2
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
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();
|
||||||
Reference in New Issue
Block a user