src/AppClass.js
// if a string is undefined or null, default it to "no details"
if a string is undefined or null, default it to "no details"
if a string is undefined or null default it to " no details "
checkString(inputString) {
        let outputText = inputString
        if (inputString === undefined) {
            outputText = "no details"
        }
        if (inputString == null) {
            outputText = "no details"
        }
        return outputText
    }
checkString ( inputString ) { let outputText = inputString if ( inputString === undefined ) { outputText = "no details" } if ( inputString == null ) { outputText = "no details" } return outputText }
if a string is undefined or null, default it to "no details"
if a string is undefined or null default it to " no details "