/*
let usernames: string[] = ["admin", "Alice", "Bob", "Charlie", "David"];
for (let username of usernames) {
if (username === "admin") {
console.log("Hello admin, would you like to see a status report?");
} else {
console.log(`Hello ${username}, thank you for logging in again.`);
}
}
*/
let usernames: string[] = ["admin", "Alice", "Bob", "Charlie", "David"];
for (let username of usernames) {
if (username === "admin") {
console.log("Hello admin, would you like to see a status report?");
} else {
console.log(`Hello ${username}, thank you for logging in again.`);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: