Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Bassem TAAMALLAH
Bassem TAAMALLAH
10,035 Points

function toUpperCase() { [native code] } problem by using toUppercase()

i got a problem when i want to display the uppercase of string on the console or on the web browser. I got the message " function toUpperCase() { [native code] }". Are there any solutions? thanks

jamesjones21
jamesjones21
9,260 Points

can you provide me with your code?

2 Answers

Steven Parker
Steven Parker
229,657 Points

One likely cause of this error would be forgetting to put the parentheses after the function name to invoke it.

If that's not it, please post your code here for a more accurate answer.

Omar Bahaa
PLUS
Omar Bahaa
Courses Plus Student 1,801 Points

Steven Parker , It was not my question, however i was about to ask the same question and actually you are right. i feel stupid :D

Steven Parker
Steven Parker
229,657 Points

Don't feel stupid, mistakes are the best teachers. :wink: