01 May 2017
JavaScript: Replace & Replace All & Replace Regex
Related Posts:
Javascrip Fetch example console Fetch example2021var myHeaders = new Headers(); myHeaders.append("Authorization", "Basic bWljcm9zaXRlOlhhWkxwd1dieER4eW00N1Y="); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "Usern… Read More
Removing first and last character from a string in JavaScript Using slice methodlet str = '/hello/'; //slice starts from index 1 and ends before last index console.log(str.slice(1,-1)); //output --> 'hello'Note: Negative index -1 is equivalent to str.length-1&n… Read More
Html form send email via google script without server Html form send email via google script without serverClone template from hereFrom address xxxA@gmail.com2021/***************************************************** * This file was written on xxxA@gmail.com… Read More
JavaScript: Replace & Replace All & Replace Regex Replace JavaScript 2017 var a = 1,999,999.00 ; //Replace var b = a.replace(',' , ''); Output: 1999,999.00 //Replace ALL while (a.indexOf(',') !== -1) { b = a.replace(',' , ''); } Output: 1999999.00 //Replace ALL + … Read More
Promise cơ bản. resolve, reject, all, race, status, value ? Promise cơ bản. Promise là gì ? resolve, reject ? NodeJS 2019 /** * Promise là gì. */ let promise = new Promise((resolve, reject) => { resolve('Success!'); // reject(new Error('Faild!')); }); promise.… Read More
0 nhận xét:
Post a Comment