JSFiddle - React, Tailwind, and code Playground
by apasaja
JavaScript
let abc = '{"7":12.672,"双":1.98}'
let def
var foo = (function bar() {
const result = JSON.parse(abc)
def = result
console.log(def)
})(); // hello
by apasaja
let abc = '{"7":12.672,"双":1.98}'
let def
var foo = (function bar() {
const result = JSON.parse(abc)
def = result
console.log(def)
})(); // hello