render(){ let langs = ["PHP","ES6","JAVA"] return (<div> {langs.map(it => <p>{it}</p>)} </div>) } , 1) Error. Cannot use direct JavaScript code in JSX,2) Error. Should be replaced with a for..loop for correct output, 3) Displays the list of languages in the array, 4) Displays nothing, "> render(){ let langs = ["PHP","ES6","JAVA"] return (<div> {langs.map(it => <p>{it}</p>)} </div>) } "/> render(){ let langs = ["PHP","ES6","JAVA"] return (<div> {langs.map(it => <p>{it}</p>)} </div>) } , Error. Cannot use direct JavaScript code in JSX, Error. Should be replaced with a for..loop for correct output, Displays the list of languages in the array, Displays nothing, "/>
Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing