mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-13 09:02:23 -05:00
508 B
508 B
title, localeTitle
| title | localeTitle |
|---|---|
| Accessing Object Properties with Variables | الوصول إلى خصائص الكائن مع المتغيرات |
الوصول إلى خصائص الكائن مع المتغيرات
إليك حلًا عمليًا في حالة عطلك:
`// Setup var testObj = { 12: "Namath", 16: "Montana", 19: "Unitas" };
// Only change code below this line;
var playerNumber = 16; // Change this Line var player = testObj[playerNumber]; // Change this Line `