const a = {
method_1: function(a) {
console.log("1", this)
const func = function() {
console.log("2", this)
}
func()
},
somevar: "TEST"
}
a.method_1();
returns an Element object
returns an array-like object of all child elements
news.map(newsItem => (
<Card
title={newsItem.title}
key={
new Date(newsItem.publishedAt).getTime() - Math.random() * 25
}
urlToImage={newsItem.urlToImage}
description={newsItem.description}
/>
))
stream.getTracks().forEach(track => track.stop())