JavaScript wyświetla tekst raz po 3 sekundach

// program to display a text using setTimeout method
function greet() {
    console.log('Hello world');
}

setTimeout(greet, 3000);
console.log('This message is shown first');
SAMER SAEID