АР
myWord = "anotherWord";
let words = {
"word" : "Some text",
"anotherWord" : "Another text",
"oneMoreWord" : "One more"
};
myWord = words[myWord] || "Default text";
Size: a a a
АР
myWord = "anotherWord";
let words = {
"word" : "Some text",
"anotherWord" : "Another text",
"oneMoreWord" : "One more"
};
myWord = words[myWord] || "Default text";
МТ
МТ
myWord = "anotherWord";
let words = {
"word" : "Some text",
"anotherWord" : "Another text",
"oneMoreWord" : "One more"
};
myWord = words[myWord] || "Default text";
˸A
PM
АР
АР
МТ
АР
АР
МТ
МТ
МТ
˸A
МТ
myWord
численное -использовать можно так:myWord = words[myWord + ""];
МТ
let words = {
"15": "Some text",
"5" : "Another text",
"2" : "One more"
};
PM
PM
К
К