let myString = 'Some String'
The string variable has access to all string functions document.write(myString.toUpperCase());The result will be:SOME STRING
But if we let number variable to use the string function toUpperCase() let myNumber = 55
console.log(myNumber.toUpperCase());Then we will get the following error. This is because number type variable does not have access to string functionsUncaught TypeError: myNumber.toUpperCase is not a function