In javascript I have the following:
var inf = id + '|' + city ;
if id or city are null then inf will be null.
Is there any slick way of saying if id or city are null make then blank.
I know in c# you can do the following:
var inf = (id ?? "") + (city ?? "");
Any similar method in javascript?