I need help I am stuck on this problem what do I do?


#1

This is the question
Now let's generate a space fact while we learn a brand new operator, called (drum roll please) the modulus.

The idea behind the modulus is to show you the remainder after you divide a number.

So, if you divide 13 / 5, 5 goes into 13 two times, and there will be 3 remaining. A modulus, denoted by a %, would take 13 % 5 and return the remainder 3.

How on Earth is this useful?

Let's ask a question a modulus can solve: What will the moon phase be one year from today

Let's say it's a full moon tonight, and we want to know what the moon will look like one year from today. We know from the moon phase image to the right that the moon circles the Earth every 27 days, so let's start by dividing 365 by 27.

Remember to put your calculations in a console.log.

So this is what I put in console.log(365 % 27)
then I tried console.log(365/27=13.5)
then I tried console.log(365/27=13)

and then I pressed run but nothing happened it just did nothing no error just nothing lol (:


#2

so let's start by dividing 365 by 27

I guess that they want you to divide 365 by 27.

console.log(365 / 27);

#3

I'm having the same problem!


#4
  1. Go to this page https://discuss.codecademy.com/c/learn-javascript/javascript-take-off
  2. Click the + New Topic button
  3. Fill in the template
  4. Someone will help

#5

thanks a lot for replying lol but nothing happens lol (:


#6

After resetting this exercise I tried to reproduce this behaviour, successfully. Bug reported.


Workaround - get back to the second exercise (https://www.codecademy.com/en/courses/learn-javascript/lessons/javascript-take-off/exercises/types), reset the whole course (this is beginning, not a big loss) and everything should work. It worked for me, at least.


#7

Didn't work for me, though. Anybody has other ideas?


#8

Please give us a screenshot of it not working.


#9

Thank you very much, the problem already resolved


#10

I have the same problem


#11

Start a new topic, share the link to the exercise you're working on as well as all of your written code so far.


#17

where is the button?


Where do I find the button?
#18

I have the same problem .what shoult i do?


#19