Last test don't want match

Tell us what’s happening:

hello,
i think i am right but the last test don’t want match…
but the dev is OK i think… :slight_smile: so why ?

Your code so far


class Results extends React.Component {
constructor(props) {
  super(props);
}
render() {
  console.log(this.props.fiftyFifty)
  return (
    <h1>
    {
      this.props.fiftyFifty===true ? "You Win!" : "You Lose!"
    }
    </h1>
  )
};
};

class GameOfChance extends React.Component {
constructor(props) {
  super(props);
  this.state = {
    counter: 1
  }
  this.handleClick = this.handleClick.bind(this);
}
handleClick() {
  this.setState({
    counter: this.state.counter + 1 // change code here
  });
}
render() {
  const expression = Math.round() >= 0.5; // change code here
  return (
    <div>
      <button onClick={this.handleClick}>Play Again</button>
      <Results fiftyFifty={expression}/>
      <p>{'Turn: ' + this.state.counter}</p>
    </div>
  );
}
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36.

Challenge: Render Conditionally from Props

Link to the challenge:

lol i just forgot the random :slight_smile: maybe is why ^^

yes… just wake-up and code “round” for “random” … the test is okay now :slight_smile: