What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-23 01:45:03
create server and connect to db and frontend
// create directory //npm init -y //npm i express --save //npm i mysql --save //create public directory //create server.js // <---- In the server js file ---> 'use strict'; const express = require('express'); const app = express(); app.use(expre... Add solution -
Javascript 2021-09-18 07:21:02
combination with repetition algorithm js
(() => { 'use strict'; // COMBINATIONS WITH REPETITIONS ------------------------------------------- // combsWithRep :: Int -> [a] -> [[a]] const combsWithRep = (k, xs) => { const comb = (n, ys) => { ... Add solution -
Javascript 2021-09-16 23:56:03
jquery like selector in javascript
var $ = (function () { 'use strict'; /** * Create the constructor * @param {String} selector The selector to use */ var Constructor = function (selector) { if (!selector) return; if (selector === 'document') { this.elems = [document]; ... Add solution -
Javascript 2021-09-16 12:07:01
javascript months array
'use strict'; (function(d){ var mL = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var mS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'N... Add solution -
Javascript 2021-09-14 22:34:01
require method-override
'use strict'; // Application dependencies const express = require('express'); const cors = require('cors'); const superagent = require('superagent'); const pg = require('pg'); const methodOverride = require('method-override'); // Application setup requir... Add solution -
Javascript 2021-09-12 09:43:01
javascript use strict
//It's a new feature of ECMAScript 5. //With strict mode, you can not, for example, use undeclared variables. Insert a 'use strict'; statement on top of your script: /***START ANY JS FILE***/ 'use strict'; var a = 2; .... /***END***/ Or, insert a 'use ... Add solution