Plz help iam stuck in Control Flow exercise 8.Logical Operator


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

https://www.codecademy.com/courses/learn-javascript-control-flow/lessons/control-flow/exercises/logical-operators?action=lesson_resume&course_redirect=introduction-to-javascript

</home/ccuser/workspace/learn-javascript-U2L1E5-8/main.js:4
is (moonPhase === ‘full’ &&
^

ReferenceError: is is not defined
at Object. (/home/ccuser/workspace/learn-javascript-U2L1E5-8/main.js:4:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

Hi @sangameshwar123,

Can you post your code here, the link will only show what the exercise is, but not your code.

Remember to use the button </> to post your code, it will be easier for anyone to refer.

Thank you. :slight_smile:


Edit: From the error you posted, it seemed like there is a typing error involved, if you look over carefully.

is (moonPhase === ‘full’ &&  .......
^ //this part, refer the exercise what should be there

#3

Hi there :slight_smile:
you are close to complete the exercise. all you have to do s add the new var to the if else. now it up to you how to do it.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.