{{ incrementAndGet() }}
{{ getRandomGreeting() }}
``` **Correct:** ```vueCount: {{ count }}
{{ greeting }}
``` ## Pure Function Guidelines A pure function: 1. Given the same inputs, always returns the same output 2. Does not modify any external state 3. Does not perform I/O operations (network, console, file system) 4. Does not depend on mutable external state ```javascript // PURE - safe for templates function formatCurrency(amount, currency = 'USD') { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } function fullName(first, last) { return `${first} ${last}`; } function isExpired(date) { return new Date(date) < new Date(); } // IMPURE - unsafe for templates function logAndReturn(value) { console.log(value); // I/O return value; } function getFromLocalStorage(key) { return localStorage.getItem(key); // External state } function updateAndReturn(obj, key, value) { obj[key] = value; // Mutation return obj; } ``` ## Reference - [Vue.js Template Syntax - Calling Functions](https://vuejs.org/guide/essentials/template-syntax.html#calling-functions) - [Vue.js Computed Properties](https://vuejs.org/guide/essentials/computed.html)