Can I use a ternary operator when I have more than one operation to perform per case?
For example can I use it here?:
if (dwelling) { dwellin
Although i highly advice against it for the sake of readability and extensibility you could:
dwelling ? (dwelling = dwelling[0].nodeValue, letterDwelling=dwelling[0].toUpperCase()) : (dwelling = letterDwelling = "");