Skip to content

Prolanceer/assignment-javascript-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Assignment for a Javascript Developer

Assignment Details

  • Given a JavaScript object, write a function named getObjPath(jsObj, path) to search if the path is present in the object.
    • If the path exist return the result of the path
    • If the path doesn't exist return null.

Below given an example javascript object, your function getObjPath(emp, 'address.locality.street') should return "2nd main domlur"

Let emp = {
  name: "Rajesh",
  address : {
         locality : {
               street : "2nd main domlur"
          }
    }
}

About

Assignment for hiring Javascript developers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published