What does this construct mean?
- by ArneRie
Iam debugging some javascript, and cant explain what this "||" does?
loadingError: function(title, msg){
var title = title || 'Error';
var msg = msg || 'Error on Request';
new my.widget.InformationBox({
title: title,
message: msg,
type: 'error'
}).show();
}
Can someone give me an hint, why this guy is using var title = title || 'ERROR' ??