diff --git a/.gitignore b/.gitignore index f78ec928..e806e840 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .parcel-cache +/dist +/node_modules \ No newline at end of file diff --git a/src/js/JCalert.js b/src/js/JCalert.js new file mode 100644 index 00000000..651d1350 --- /dev/null +++ b/src/js/JCalert.js @@ -0,0 +1,9 @@ +let score= 0; +let highScore= 0; + +function gameOver () { + if (score > highScore) { + alert("New High Score!") + } +} +