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の使用に同意したものとみなされます。