Category : string

I’m making an API call, and when I’m concatenating some values to a variable, it works fine, but at the start of the sentence it has "undefined" for some reasons. I don’t understand why. Here’s my code const APIKEY = ‘ajhy1e4j9rudm4lces756’; const URL = `https://api.lunarcrush.com/v2?data=assets&key=${APIKEY}&symbol=DOGE&data_points=365&interval=day`; const text = document.getElementById(‘price’); let textToPutIn; let callTheAPI = () ..

Read more

Given the following string: `[email protected] [email protected] [email protected]; [email protected]; [email protected] [email protected] [email protected], [email protected], [email protected]; [email protected];` I am trying to split the string by an array of characters [‘, ‘, ‘r’, ‘; ‘, ‘n’, ‘ ‘]. How can I achieve that? Source: Ask Javascript..

Read more

I have a variable – I know its a special byte array or something similar – i might be wrong. The question is I am expecting to print this on console xddSMx8fxda0x10xfd+xabxd9kHxe2xb0x85x92Sx17zixb5xaaVxdam/x15x07xe3x0cxc4x95?x90xedx04xe8*xffxbdcx03xdbVZxb8xf5R but all i see is this �SM��0�+��kHⰅ�Szi��V�m/�ĕ?���*��c�VZ��R I cant post the code for it – But I guess some of you might have ..

Read more

I have next string and tring to get only Site Name string from it let text = ‘[[{"value":"Site Name"}]]AAAAAAAA[[{"value":"Site Name"}]]BBBB’ I’ve tried something like text.replace(/([[{"value":")(w+)("}]])/g, ‘$2′)) but it didn’t work Pls help Source: Ask Javascript..

Read more