jkabot
12/19/2017, 5:03 PMvar singularMsg = 'There is one item where there is no weight. This item cannot be received until the weight is added.';
var pluralMsg = function(n) { 'There are ' + n + ' items where there is no weight. These items cannot be received until the weight is added'; };
function saveRecord() {
// ...
return window.confirm(lineCount === 1 ? singularMsg : pluralMsg(lineCount));
}