Microsoft認定資格 Developer Associate(予想問題) その6

問題 3 / 65

取得したオブジェクト y に specialRequests プロパティが存在しない場合に初期化する条件式として適切なのはどれですか

①if('specialRequests' in y)
②if(!('specialRequests' in y))
③if(y.specialRequests === undefined)
④if(typeof y.specialRequests === 'undefined')
⑤if(y.hasOwnProperty('specialRequests'))

当サイトでは、ユーザー体験の向上を目的としてCookieを使用しています。サイトの利用を継続することで、Cookieの使用に同意したものとみなされます。