Skip to content

Commit 663fd30

Browse files
authored
Update sample.js
1 parent c5efad6 commit 663fd30

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

blocks/sample/sample.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
function highlightText(){
2-
let headings = document.querySelectorAll("h1");
3-
headings.style.background = "#e1e2eb";
1+
function highlightText(){
2+
const headings = document.querySelectorAll('h1');
3+
headings.style.background = '#e1e2eb';
44
}
5+
highlightText();

0 commit comments

Comments
 (0)