'touppercase' of undefined js code example Example: 'touppercase' of undefined js const text = data ? data.toUpperCase() : '';