What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-20 09:24:02
Local Module: Export and Log
//// Writing Simple LOCAL Module // Let's write simple logging module which logs the information, // warning or error to the console. // In Node.js, module is placed in separate JavaScript file. // So, create a Log.js file and write the following code i... Add solution -
Javascript 2021-09-14 23:37:03
react.js file extension
// react js file extension script.jsx 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 -
Javascript 2021-09-08 20:09:02
next js create store
//Now, we create our _app.js file in pages directory. Add the following lines of code. import React from "react"; import App, { Container } from "next/app"; import { Provider } from "react-redux"; import withRedux from "... Add solution -
Javascript 2021-09-03 17:59:02
compress image javascript
//========= Step 1 - Client Side Compression =========== //Images Objects var source_img = document.getElementById("source_img"), target_img = document.getElementById("target_img"); //(NOTE: see the examples/js/demo.js file to un... Add solution -
PHP 2021-09-03 15:51:05
php in javascript
If your whole JavaScript code gets processed by PHP, then you can do it just like that. If you have individual .js files, and you don't want PHP to process them (for example, for caching reasons), then you can just pass variables around in JavaScript. F... Add solution
Best helpers
Erica Price
+5
Scoiattolo
+5
Vigrond
+5
Muazam
+5
Emmet
+5
A G Davey
+5
Arad
+5
Meital Regev
+5
Entrepreneur
+5
Majte
+5
JoshuaFicy
+5