In JavaScript, to reference the object that you are currently working with, you would use the "this" keyword
Added by Antonia M.
Step 1
The "this" keyword refers to the object that is currently executing the code. Its value can change depending on how a function is called. Show more…
Show all steps
Your feedback will help us improve your experience
Luke Humphrey and 84 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Luke H.
Which Java keyword is used to refer to a class's hidden data fields? super static void this
John B.
In JavaScript with HTML, use the writeIn() method of the document object to display the current platform in a <p> tag on the webpage. Hint: The platform is a property of the window.navigator object that contains the current platform.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD