Write a JavaScript function (code) that can receive a name as input and print a greeting to the console.
The input comes as a single string that is the name of the person.
Examples:
Input:
Pesho
Output:
Hello, Pesho, I am JavaScript!
Input:
Bill Gates
Output:
Hello, Bill Gates, I am JavaScript!
The output should be printed to the console.