I am trying to store cake prices in an object for different sizes for example:
1.5kg = $10
2kg = $12
2.5kg = $15
3kg = $20
like
let cakePrices = {
"1.5kg" : "$10",
"2kg" : "$12",
"2.5kg" : "$15",
"3kg" : "$20"
}
I know this goes against variable naming convention since a variable name can't start with a number nor can it have a period(.)
So in what way can I store and retrieve these values?