JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Working with Strings and Finding Help

J SP
J SP
1,113 Points

When running a .toUppercase etc. why do you have () empty?

When running a .toUppercase etc. why do you have () empty?

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,172 Points

toUpperCase() is a method so it is followed by parentheses. The method has no parameters therefore the parentheses are empty.