What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 08:05:04
express req get json
const express = require('express'); const app = express(); app.use(express.json()); app.post('*', (req, res) => { req.body; // The json object sent to the server }); const port = 3000; app.listen(port, () => console.log(`Listening on port ${port... Add solution -
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
Best helpers
Bob R Bogle
+5
Eric Vought
+5
James Song
+5
Fishbean
+5
Mai Rose
+5
Cpurick
+5
Puneet Goel
+5
Bunch
+5
Rainbow
+5
Gruppetto
+5
Katboodle
+5
Vidhi Patel
+5
Buttercup
+5
Bin Nguyễn
+5