Basic JavaScript - Testing Objects for Properties - v5CvvmXvmTgBSO92yhokW

Tell us what’s happening:
Describe your issue in detail here.

This challenge is showing test results that have nothing to do with the challenge

  **Your code so far**
function checkObj(obj, checkProp) {
// Only change code below this line
function checkObj(obj, checkProp) {
if (obj.hasOwnProperty(checkProp)) {
  return obj[checkProp];
} else {
  return "Not Found";
// Only change code above this line
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Testing Objects for Properties

Link to the challenge:

If you look at what you have from top to bottom you may realize that you wrote a function inside another function.

1 Like

the test results are the correct ones for this challenge,

you have an issue here

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.