So this is my code so far:
let name = input.question("Please Provide a Name: ");
if (name === "Casper" || name === "casper"){
console.log("Access Granted");
function printMessage(){
console.log(.);
}
setTimeout(printMessage, 1000);
} else {
console.log("Access Denied");
}
What I want to do is print "..." after Access is Granted, but with each "." printing after a delay, and of course on the same line.
Thanks in advance to any help I get!