What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
Javascript 2022-01-23 05:00:25
how javascript works
JavaScript is what is called a Client-side Scripting Language. ... Inside a normal Web page you place some JavaScript code (See How Web Pages Work for details on Web pages). When the browser loads the page, the browser has a built-in interpreter that read... Add solution -
Javascript 2021-11-07 15:52:24
javascript once per day
// Run Javascript code to check for the day trigger // checks if one day has passed. function hasOneDayPassed() // get today's date. eg: "7/37/2007" var date = new Date().toLocaleDateString(); // if there's a date in localstorage and it... Add solution -
Javascript 2021-10-21 10:32:10
how many threads does node js use
Node.js runs JavaScript code in the Event Loop (initialization and callbacks), and offers a Worker Pool to handle expensive tasks like file I/O. Node.js scales well, sometimes better than more heavyweight approaches like Apache. The secret to the scalabil... Add solution -
Java 2021-10-21 04:05:03
kotlin vs java
/* JavaScript can be used to do neat things like creating animation in HTML. ... JavaScript code is run on a browser only, while Java creates applications that run in a virtual machine or browser. Java is an OOP (object-oriented programming) language,... Add solution -
Javascript 2021-10-20 20:42:11
how to automatically create hyperlink in readme
/* Here is javascript code for automatically getting link attached to content of readme.md file. Full Code - https://gist.github.com/SBZed/490f5d9eac525de02f610a28f0c9453c */ LinkHeadingToContent(headingText) { headingList = headingText.split('\n'); ... Add solution