Skip to content

Commit

Permalink
chore: update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
libondev committed Feb 6, 2025
1 parent 6fddb68 commit 047e2f8
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions playground/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@
/* eslint-disable */

const num = 10

const str = 'Hello'

const arr = ['a', 'b', 'c']

const [...list] = [...arr];

const arrowFn = (...args) => { }

const stringWithSpacesAndQuotes = `Hello\" \' \` World`

const obj = {
name: 'John',
age: 20,
}

const stringWithSpaces = `Hello\" \' \` World`
const [...list] = [...arr]
function fnScope() {

function printHello() {

const test = 'TEST'
const test = 'TEST';

obj.value?.[0]?.test()

Expand All @@ -27,24 +33,14 @@ function printHello() {
})
}

if (true) {
printHello()
}

printHello()

const initApp = () => { }

const veryLongStatement = window.name.includes('abc'.toUpperCase())[0].toLowerCase().includes('a')

(() => {
initApp(Vue)
const veryLongStatement = window.name.includes('abc'.toUpperCase())[0].toLowerCase().includes('a')?.length

function initApp(Vue) {
let app = new Vue({
router,
store,
i18n,
render: () => h(App)
render: () => h(App),
})

const METHODS = {
Expand All @@ -55,6 +51,17 @@ const veryLongStatement = window.name.includes('abc'.toUpperCase())[0].toLowerCa

unmount() {
app.$destroy()

}
}
})()
}

if (Math.random() > 0.5) {
fnScope(
)

} else {
initApp(

)
}

0 comments on commit 047e2f8

Please sign in to comment.