Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 1

my code is passing in the console but it is not passing the test. is this a bug in the beta js curriculum or am i missing something major?

thank you

...function getRandomComputerResult() {
  const options = ["Rock", "Paper", "Scissors"];
  const randomIndexNumber = Math.floor(Math.random() * options.length);
  const randomNumber = ' ' + options[randomIndexNumber];
  return randomNumber;
}
console.log(getRandomComputerResult());

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

i don’t know why the code looks so disorganized. i copied and pasted it from the fcc site

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

I don’t understand this line

The requirement is that you need to get a random element from the options. But you have a line of code that does something superfluous.