Skip to content

Commit 3e83071

Browse files
committed
Add computed property questions
1 parent 0dda8b5 commit 3e83071

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ List of 300 VueJS Interview Questions
220220
|211| [How do you implement Number localization?](#how-do-you-implement-number-localization)|
221221
|212| [How do you perform locale changing](#how-do-you-perform-locale-changin)|
222222
|213| [What is Lazy loading translations?](#what-is-lazy-loading-translations)|
223+
|214| [What is the main difference between method and computed property?](#what-is-the-main-difference-between-method-and-computed-property)|
223224

224225
1. ### What is VueJS?
225226
**Vue.js** is an open-source, progressive Javascript framework for building user interfaces that aim to be incrementally adoptable. The core library of VueJS is focused on the `view layer` only, and is easy to pick up and integrate with other libraries or existing projects.
@@ -3901,5 +3902,7 @@ List of 300 VueJS Interview Questions
39013902
loadLanguageAsync(lang).then(() => next())
39023903
})
39033904
```
3905+
214. ### What is the main difference between method and computed property?
3906+
The main difference between a computed property and a method is that computed properties are cached and invoke/change only when their dependencies change. Whereas a method will evaluate every time it's called.
39043907
39053908

0 commit comments

Comments
 (0)