Within my codebase, there exists an object named "codes":
var codes = {
code1: 'test1'
code2: 'test2'
}
I am looking to determine if this object possesses a specific property and then display the result in the console.
if(input == what goes here)
{
console.log("Has property")
}
My apologies if this question seems basic, as I am still relatively new to working with JavaScript.