What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 14:27:43
puppeter example fileupload
const puppeteer = require('puppeteer') const path = require('path') const fs = require('fs') const pathFile = __dirname.split('\\').slice(0, 4).join('/') const fileExitst = fs.existsSync(`${pathFile}/travis_1.png`) const scraperRunner = async () => { ... Add solution -
Javascript 2022-02-02 09:05:50
javascript pad string left
(" " + n).slice(-5) Add solution -
Javascript 2022-01-31 21:15:39
slice method in js
//The slice() method extracts a section of a string and returns //it as a new string, without modifying the original string. // same in array but you select elements not characters const str = 'The quick brown fox jumps over the lazy dog.'; console... Add solution -
Javascript 2022-01-30 21:31:17
how to make a string in javascript
var abc = "abcdefghijklmnopqrstuvwxyz"; var esc = 'I don\'t \n know'; // \n new line var len = abc.length; // string length abc.indexOf("lmno"); // find substring, -1 if doesn't contain abc.lastIndexOf("lmn... Add solution -
Javascript 2022-01-28 16:51:58
month javascript get data range
$(function(){ var formatted_date = function(date){ var m = ("0"+ (date.getMonth()+1)).slice(-2); // in javascript month start from 0. &nb... Add solution -
Javascript 2022-01-26 05:02:14
find capital word in string javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution
Best helpers
Bread
+5
Annu_tiger
+5
Webelo
+5
Des Wilson
+5
Mjb
+5
Twbrown
+5
Dreeves
+5
Xoxocrow
+5
Arash.amd
+5
Gaussler
+5
Kenny W
+5
Chris Crook
+5
Xzhu
+5
Steven Choi
+5
KariEllen
+5
AndrewBC
+5
Static
+5
C. Starr
+5