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