Javascript

console.log("Hello, World!");            
function greeting(name) {
    return `Hello ${name}, nice to meet you!`;
}

const greetJohn = greeting('John');
console.log(greetJohn);            
names = ['John', 'Paul', 'Ringo', 'George'];

names.forEach(name => {
    console.log(`Hello ${name}!`);
});
            
function greetMusician(n, i) {
    return `Hi ${n}, play the ${i} for me!`;
}

const band = {
    'John': 'guitar',
    'Paul': 'bass',
    'Ringo': 'drums',
    'George': 'guitar'
};

Object.entries(band).forEach(([name, instrument]) => {
    console.log(greetMusician(name, instrument));
});