What will be the output of the following JavaScript code: extend?
const obj1 = { a: 10, b: 15, c: 18 };
const obj2 = Object.assign({c: 7, d: 1}, obj1);
console.log(obj2.c, obj2.d);
What happens when the following render() method executes?
render(){
let langs = [ "Ruby ", "ES6 ", "Scala "]
return (
< div > {langs.map(it = > < p >{it}< /p >)} < /div >
)
}