Pass an Array as Props join method

Tell us what’s happening:
why does error occur when i dont use space inside join()

Your code so far

const List= (props) => {
  { /* change code below this line */ }
  return <p>{props.tasks.join(",")}</p>
  { /* change code above this line */ }

class ToDo extends React.Component {
  constructor(props) {
  render() {
    return (
        <h1>To Do Lists</h1>
        { /* change code below this line */ }
        <List tasks={["walkdog","workout"]} />
        <List tasks={["run","study","code"]}/>
        { /* change code above this line */ }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0.

Link to the challenge:

In English we generally put spaces after commas.

If you join the tasks without the space it will come like this: run,study,code
With the space run, study, code. Which looks better.