script.js
// function that creates new button with our search history
function that creates new button with our search history
function that creates new button with our search history
function historyButton() {
        let getStorage = JSON.parse(localStorage.getItem('city'));
        let newButton = $("<button>").addClass('row histButton card bg-light shadow-lg bg-white').text(getStorage);
        $('#historyButton').append(newButton);
    }
function historyButton ( ) { let getStorage = JSON . parse ( localStorage . getItem ( 'city' ) ) ; let newButton = $ ( "<button>" ) . addClass ( 'row histButton card bg-light shadow-lg bg-white' ) . text ( getStorage ) ; $ ( '#historyButton' ) . append ( newButton ) ; }
function that creates new button with our search history
function that creates new button with our search history