Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. B

    JavaScript Exercise - find a passcode using dimensional arrays and function

    Hi! I´m stuck on this: Write a function named getValidPassword that takes a two dimensional array as parameter. Each entry in the first array represents a passcode. You need to find the passcode that has no odd digits and returns that passcode from your function. Here's an example: var...
  2. B

    JavaScript Create a condition with a integer random number

    Also print this var luck = Math.ceil(Math.random()*99); var alias = luck < 90? 'Mr Purple' : 'Mr Pink'; console.log(Math.ceil(luck)); console.log(alias); And the error is >>>>Code is incorrect Make sure the expressions on the left and right from the : sign are correct
  3. B

    JavaScript Create a condition with a integer random number

    Hi Thanks for your help. However the console keeps saying " >>>>Code is incorrect Remember to generate a random number between 0 and 99. That number needs to be an integer." No ideia why the integer number keeps showing error!
  4. B

    JavaScript Create a condition with a integer random number

    Hello everyone! I´m learnin by myself some javascript and I´m performing some exercises. They ask me to create this: "Generate a random integer number between 0 and 99 and assign it to the luck variable. Write a condition that should check if Mr. Pink's luck is greater than 90. If so, the...
Back
Top Bottom