Doubts and Clarifications
Javascript
1. How to set an image src in JS?
document.querySelector('.img').src = "img.png"img.src = "test.jpg"
img.addEL('load',function(){
console.log("The image has been fully loaded now");
})2. Spread operator [...] creates a shallow copy of array. Can we create a deepcopy and how? Also for objects?
3. In react, a variable is not working that is defined outside JSX

Last updated