What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-06 18:28:04
js save and load an array of different types into localstorage
var myArray = [1,"word",23,-12,"string"];//your list of values, they can be strings or numbers //SAVING function save(a,b,c,d,e) {//the number of parameters you add is how many items you save var itemArray = [a,b,c,d,e];//number of... Add solution -
Javascript 2021-10-04 04:23:04
jwt implementation in node js
// index.js const express = require('express'); const jwt = require('jsonwebtoken'); const app = express(); // generate token for another API to use in req.header app.post('/login', (req, res) => { const user = { id: 1, username... Add solution -
Javascript 2021-10-03 11:50:05
prevent browser back button jquery
window.onload = function () { if (typeof history.pushState === "function") { history.pushState("jibberish", null, null); window.onpopstate = function () { history.pushState('newjibberish', null, null); ... Add solution -
-
Javascript 2021-10-02 22:05:04
js code for webpage download progress bar
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="a1" data-filename="filename.xml">Click to download</div> <script> $('#a1').click(function() { ... Add solution -
Javascript 2021-10-01 08:15:10
convert into roman js
function integer_to_roman(num) { if (typeof num !== 'number') return false; var digits = String(+num).split(""), key = ["","C","CC","CCC","CD","D","DC","DCC",&quo... Add solution