How to create the following variables:
const city = 'Your city';
const state = 'your state';
const country = 'Country';
From the input variable
const address = "Your city, your state, your country";
Are there any methods to do this in JavaScript?
.splitthe string and then assign[0],[1]and[2]is the result to the appropriate constants…?