You should not have access to those variables. They're defined in the scope of the createItem
function and are only accessible within that function.
Are you trying to do something like
CatalogApp.prototype.appendUnitsIfHasValue = function(a,b,c,d) {
if (a != "") {a+=' '+DIMENSIONSUNIT} else {a = "N/A"}
if (b != "") {b+=' '+DIMENSIONSUNIT} else {b = "N/A"}
if (c != "") {c+=' '+DIMENSIONSUNIT} else {c = "N/A"}
if (d != "") {d+=' '+WEIGHTUNIT} else {d = "N/A"}
}