mirror of https://github.com/01-edu/public.git
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.
nprimo
3038cf736d
|
4 months ago | |
---|---|---|
.. | ||
README.md | 4 months ago |
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 career 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 rhymes for you !
- Log the provided variable
word
if it ends withion
AND does not start with'al'
.