Correct Answer : Option (D)
Correct Answer : Option (A)
const person =(firstName, lastName) => { first: firstName, last: lastName } console.log(person("jhon", "Wolson"))
import React, {useState} from 'react';
const name = 'Venkat'; const age = 30; const person = { name, age }; console.log(person);
{{name: "Venkat", age: 30}}
{name: "Venkat", age: 30}
{person: "Venkat", person: 30}}
{person: {name: "Venkat", age: 30}}
Correct Answer : Option (B)
<h1>{fetch()}</h1>
<h1>${fetch()}</h1>
<h1>{fetch}</h1>
<h1>${fetch}</h1>
render(){ let langs = ["Ruby","ES6","Scala"] return (<div> {langs.map(it => <p>{it}</p>)} </div>) }
Correct Answer : Option (C)
style={{font-size:12,color:'red'}}
style={{fontSize:'12px',color:'red'}}
style={fontSize:'12px',color:'red'}
style={{font-size:12px,color:'red'}}
Explanation : Call to setState() invokes render(). Calling it inside render is suicidal. It gets into an infinite loop