So I have an input field, if it\'s blank, I want its value to be the words \"empty\", but if there is any value inputted, I want the value to be the inputted value. I want to us
You can do this:
var getValue = function (input, defaultValue) { return input.value || defaultValue; };