Intern — Middle
Function implementing a pause before returning the result
livecode
Task condition
Create a function that takes two parameters: the duration of the pause (in milliseconds) and the value to return after it completes. The function should suspend execution for the specified amount of time, then return the passed value.
function delay(ms, result) {
// your code here
}