Pergunta de entrevista da empresa HyperGuest

Write a function that can be called like so: say(“Hello”)(“World”) and will log “Hello, World!” to the console

Resposta da entrevista

Sigiloso

18 de mar. de 2024

function say(firstWord) { return function(secondWord) { console.log(`${firstWord}, ${secondWord}!`); } }