VueJS is pretty cool - {{ name }} ({{ age }})
{{ multiplyAge() }}
{{ randomFloat() }}
PROJECT CODE
new Vue({ el: '#exercise', data: { name: 'Lexx Chaplin', age: 29, image: 'cat.png' }, methods: { multiplyAge: function(){ return this.age * 3; }, randomFloat: function(){ return Math.random(); } } });
VueJS - Assignment 1
VueJS is pretty cool - {{ name }} ({{ age }})
{{ multiplyAge() }}
{{ randomFloat() }}