forked from root/public
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
…
|
||
---|---|---|
.. | ||
README.md |
README.md
PHANT0M-WRiT3R 👻
Using functions in conditions
Any expressions is valid code inside conditions, that includes functions calls:
// for example, we can uppercase to make sure it will match
// no mater if the name has upper or lower letter !
if ('Patrick Lemaire'.toUpperCase() === 'PATRICK LEMAIRE') {
console.log('This is Patrick')
}
Instructions
Your carreer as a rap ghost writer is at a dead end as inspiration seems to have
left for good, but you still have an ace up your sleeve, you will write a bot
PHANT0M-WRiT3R
that find ryhmes for you !
- Log the provided variable
word
if it does not start with'al'
and end with'ion'