resource.json
{
"code": [
"lol",
"xD",
"LAMO"
]
}
index.js
let random = resource.code[Math.floor(Math.random()*resource.code.length)]
i need to removed that array thing in the json
resource.json
{
"code": [
"lol",
"xD",
"LAMO"
]
}
index.js
let random = resource.code[Math.floor(Math.random()*resource.code.length)]
i need to removed that array thing in the json
Hey SudhanPlayz,
Can you please understand what you are trying to do?
You know you can just remove an array by removing the text:
"code": [
"lol",
"xD",
"LAMO"
]
If you didn’t know, you know now
Hope I helped you.
Obviously, he meant removing the array using code.
New Topic: How to use delete?
New Topic : How to use delete?