//--Need a way to set a delay here--\\\
var result = ['Rock', 'Paper', 'Scissors',][Math.floor(Math.random() * 3)]
cpuReply.value = result
//--end of script--\\\
Okay so I am trying to find a way to add a delay before these two lines of code. I have heard a lot of advice about using the .delay, but I don't know how to define it, and it often says unexpected number if I do this
delay(5000)
var result = ['Rock', 'Paper', 'Scissors',][Math.floor(Math.random() * 3)]
cpuReply.value = result
I am not sure I typed in the delay right (tell me if it is wrong) and please help me figure this out.