Category : split

I am trying to use the chrome browser’s console with a code. But i’m getting the error "Cannot read property ‘split’ undefined". How can I fix this issue? Code: var send_url = name.split(‘"’)[1].split("?")[0] + "send.php"; (async function() { var xsrf = (await (await fetch("https://www.website.com", { credentials: "include" })).text()).split("setToken(‘")[1].split("’)")[0] Source: Ask Javascript..

Read more

I have a Javascript Array that contains the file name and its extension such as this: let files = ["Apple.docx", "Cat.jpeg", "Moon.gif"]; I want to make it so the extensions like (.docx, .jpeg and .gif) are stored in another array and also uppercase as this while the original array just becomes: let files = ["Apple", ..

Read more

So I have a strings like this "name": "Monochrome / Black & White 4-Pack (Wolf Man, Creature from Black Lagoon, Dracula, Frankenstein) – Gemini" "name": "Monochrome / Black & White Metallic 4-Pack (Wolf Man, Creature from Black Lagoon, Dracula, Frankenstein) – Gemini (PR=300 pieces)" "name": "799 Dracula with Candle – Walgreens" "name": "114 The Wolf ..

Read more