my code have problem and I dont know why its not working and always give difrent erros
I tried anyway
the error:
'arraysorted' is not defined no-undef
<div>
{{ arraysorted }}
</div>
</template>
<script>
const Array = [];
export default {
data: () => ({
Array: [1, 24, 23, 56, 76, 5, 468, 97, 65, 90, 23, 53, 23],
arraysorted: [],
}),
mounted: {
ArraySort() {
return arraysorted = Array.sort(function (a, b) {
return b - a;
});
},
},
};
</script>