Skip to content

Commit

Permalink
add new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sugoides committed Feb 13, 2024
1 parent f73fb58 commit 94f199a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion will-you-be-my-valentine/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let noCount = 0;

function preloadImages() {
// Preload images
const preloadedImages = [Image.src=`img/cat-yes.jpg`];
const preloadedImages = [new Image.src=`img/cat-yes.jpg`];



Expand Down

0 comments on commit 94f199a

Please sign in to comment.