I am quite new to this and learning from scratch. I am creating a website for my children and I would like to add music to my pages, but not only one, but a different song for each page.
I know this code, plays a song throughout my whole website
var audio = new Audio("C: path");
audio.play()
But what could I do to have a different song added to 4 HTML pages, lets say
I have done this
const pageAudioMap = { //defined an object to map page URLs to audio file