Higher Order Function

Hey I tried the code which I have pasted below but did not get the desired output I think I have passed the values in wrong way can you please check it once

function car(name){

function model(mname){


    function price(cost){

        console.log(name, mname, cost )

    }

    return price

}

return model

}

c1 = car()

console.log(c1(‘Audi’))

console.log(c1(‘r8’))

console.log(c1(‘200’))

I want this code to print Car-name, Car Model & Cost in single line