This is the code
const restaurant = {
name: 'Ichiran Ramen',
address: `${Math.floor(Math.random() * 100) + 1} Johnson Ave`,
city: 'Brooklyn',
state: 'NY',
zipcode: '11206',
I want to create a variable "fullAddress" which should point to a string using the information from restaurant
fullAdress
should have address city state and zipcode.
my approach is
let fullAddress = restaurant.address;
fullAddress += restaurant.city;
fullAddress += restaurant.state;
fullAddress += restaurant.zipcode;
but this seems odd to me and lengthy and it is not having spaces in between.
any help will be highly appreciated.