-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
16 lines (14 loc) · 826 Bytes
/
script.js
File metadata and controls
16 lines (14 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
list_of_ans = ["Good Question...", "MMM, intresting", "I need to think about this", "I will get back to this...", "Why are you asking me this question?", "I am going to have to think some more.", "Sorrym but I have to tell you... I am working on improvements..."]
function submit(){
var get_users_text = document.getElementById("users_text")
var get_computer_ans_text = document.getElementById("computer_ans")
get_computer_ans_text.innerHTML=list_of_ans[Math.floor(Math.random()*list_of_ans.length)];
get_users_text.value
newColor = document.createElement("text");
const para = document.createElement("p");
document.body.appendChild(para);
// if (get_user_text.includes("dumb") == True){
// get_computer_ans.innerHTML = "Sorry you feel that way, I will try to improve."
// }
}
//c