Home »
MCQs »
KnockoutJS MCQs
Which of the following is the correct syntax to use observable attributes in KO?
24. Which of the following is the correct syntax to use observable attributes in KO?
- Observable = ko.this ('value');
- this.property = ko.observable('value');
- this.observable = ko.this('value');
Answer: B) this.property = ko.observable('value');
Explanation:
this.property = ko.observable('value'); is the correct syntax to use observable attribute in KO.