This is my solution, to the problem
import chalk from 'chalk';
export const sayHello = () => {
let abc = chalk.green("Hello, Green World!");
console.log(abc);
};
BUT is not being accepted, and am getting these erros
- Function sayHello should use the function chalk.green() to change the color of the output
- Function sayHello should print a single message to the console
- Function sayHello should print the message 'Hello, Green World!' to the console
I even tried this
import chalk from 'chalk';
export const sayHello = () => {
console.log(chalk.green('Hello, Green World!'));
};
Would like to see where am I making an error.