Write a JavaScript function to check if an object contains given property. Create a function checkGivenProperty() that accepts a object and a property name as arguments and return true or false.
Tip 1: Use hasOwnProperty.call()
Tip 2: First create an object with properties , then use hasOwnProperty.call() to check for a given property.

![[Solved] JavaScript function to check if an object contains given property](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] CSCI4041 HW5 Part B - Graph Algorithms Programming Problem](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.