// Get the DOM elements | |
const stopButton = document.querySelector("#stop-btn"); | |
const h1Tag = document.querySelector("h1"); | |
const second = 1000; | |
// Formats one digit number to a string with "0" | |
function concatZero (num){ // 1 22 | |
return ('0' + num ).slice(-2); // "01" "22" | |
} |
function Product(name, price) { | |
this.name = name; | |
this.price = price; | |
} | |
Product.prototype.nameAndPrice = function() { | |
console.log( | |
"The product's name is: " + this.name, | |
"and the product's price is: " + this.price, | |
); |
Search and collaborative Data Base platform for Serial Killers in which you can read info about famous Serial Killers and you can also add new killer files, edit them and delete them. 🔪 You can also add to favorites the files you like the most and have a personal diplay of those or leave comments with lots of love or suggestions for the creators. ❤️
Tired of listening the same songs over and over again and want to find some new music but don't know how to search for it? With Track Tracker it's easier than you think! Now you can choose the music genre you want and get four random songs recommended to you. Not satisfied with the result? Don't worry, you can push the shuffle button as many times as you like and get four different songs every time. Or you can try with a different genre. Easy, isn't it? 😄
For this exercise you can use Repl.it or your code editor.