Pass an Array as Props - tests not working?!

Tell us what’s happening:
So I am really lost as to why this is not working at all. I hit run the test but nothing is happening.

Please advice, before I lose all of my hair :frowning:

Your code so far

const List= (props) => {
  return <p>{props.tasks.join(’, ‘)}</p>

class ToDo extends React.Component {
  constructor(props) {
  render() {
    return (
        <h1>To Do Lists</h1>
         <List tasks= { ["sleep","eat","code"] } />
        <List tasks= { ["Sleeping","watching tv","some freecodecamp"] } />

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Link to the challenge:

What errors do you see in your browser’s console?

Hi Randell,

This is what I get:

You are getting that, because you are using invalid characters in your join method.

1 Like

ok thanks for the heads up, I will try and figure this out!

Strings are either straight double quotes or straight single quotes.

1 Like

Done!! Thanks again Randell. :). These are the things I need to brush up on, spotting errors!