Answers for "javascript join address to string"

1

javascript join address to string

var address = "foo";
var city;
var state = "bar";
var zip;

text = [address, city, state, zip].filter(Boolean).join(", ");
console.log(text)
Posted by: Guest on June-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language