You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
240 B
JavaScript
21 lines
240 B
JavaScript
2 years ago
|
// Mapping
|
||
|
export default {
|
||
|
1: () => test1(),
|
||
|
2: () => test2(),
|
||
|
3: () => {test1(); test2()}
|
||
|
}
|
||
|
|
||
|
// Functions
|
||
|
|
||
|
const test1 = () => {
|
||
|
console.log('test 1 test 1')
|
||
|
}
|
||
|
|
||
|
const test2 = () => {
|
||
|
console.log('test 2 test 2')
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|