Created
September 24, 2017 07:14
-
-
Save kahwee/d45dfc728178ecce9caa29fadd97344c to your computer and use it in GitHub Desktop.
sayHello()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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