Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const plantNeedsWater = (day) => {
- if (day === 'Wednesday') {
- return true;
- } else {
- return false;
- }
- };
- const plantNeedsWater = function(day)
- {
- if(day === 'Wednesday')
- {
- return true;
- }
- else return false;
- }
- console.log(plantNeedsWater('Tuesday'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement