Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c10ff commit 04b7f81Copy full SHA for 04b7f81
Week1/js-exercises/ex2-aboutMe.js
@@ -10,11 +10,11 @@ items.forEach(item => {
10
item.classList = 'list-item';
11
});
12
13
-var style = document.createElement('style');
+const style = document.createElement('style');
14
style.type = 'text/css';
15
style.innerHTML = '.list-item{color:red}';
16
document.head.appendChild(style);
17
18
-var img = new Image(200, 200);
+const img = new Image(200, 200);
19
img.src = 'https://cdn1.vectorstock.com/i/1000x1000/51/05/male-profile-avatar-with-brown-hair-vector-12055105.jpg';
20
document.body.appendChild(img);
0 commit comments