This commit is contained in:
Karan
2021-11-24 20:31:27 +05:30
parent 305bcf7b9b
commit cb2f78df51
6 changed files with 0 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
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();