What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 04:25:23
express basic routing syntax
var express = require('express') var router = express.Router() // middleware that is specific to this router router.use(function timeLog (req, res, next) { console.log('Time: ', Date.now()) next() }) // define the home page route router.get('/', func... Add solution -
Javascript 2022-03-16 21:05:03
my js
const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) var points = [40, 100, 1, 5, 25, 10]; points.sort((a,b) => a-b) var newArray = array.filter(function(item) { return ... Add solution -
Other 2022-03-13 03:20:09
f# syntax
// single line comments use a double slash (* multi line comments use (* . . . *) pair -end of multi line comment- *) // ======== "Variables" (but not really) ========== // The "let" keyword defines an (immutable) value let myInt = 5... Add solution -
Python 2022-03-11 05:30:35
assert keyword python
"""Quick note! This code snippet has been copied by Pseudo Balls. This is the original answer. Please consider justice by ignoring his answer. """ """assert: evaluates an expression and raises AssertionError if... Add solution -
Javascript 2022-03-09 13:35:16
setup node js express basic setup
npm init -y npm i express Add solution -
PHP 2022-03-09 10:50:04
/([a-z-0-9-]*) php
RedirectMatch 301 ^/news/([0-9]+)-(.*) /blog RedirectMatch 301 ^/news/([a-z]+)-(.*)/$ /blog/$1 These are regular expressions ("regex" for short). Specifically, Apache uses PCRE (Perl Compatible Regular Expression) syntax (the same as PHP, simi... Add solution -
Other 2022-03-06 20:40:31
javascript form validation
//form.html <!DOCTYPE html> <html> <head> <title>Javascript Onsubmit Event Example</title> <link href="css/style.css" rel="stylesheet"> <!-- Include CSS File Here--> <script src="js/ons... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5