Skip to content

Instantly share code, notes, and snippets.

@kahwee
Created September 24, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahwee/d45dfc728178ecce9caa29fadd97344c to your computer and use it in GitHub Desktop.
Save kahwee/d45dfc728178ecce9caa29fadd97344c to your computer and use it in GitHub Desktop.
sayHello()
const chalk = require('chalk')
/*
( Open parantheses
) Close parantheses
[ Open bracket
] Close bracket
{ Open brace
} Close brace
/ (Forward) Slash
\ Backslash
& Ampersand
@ At sign
~ Tilde
` Grave / Backticks
' Single quote
" Double quote
< Lesser than
> Greater than
*/
const names = [
'World',
'Yuchii',
'Grubby',
'Shing',
'Elliot'
]
function sayHello (name) {
console.log('Hello ' + chalk.blue(name))
}
names.forEach((name) => {
sayHello(name)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment