What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-15 16:13:12
javascript compare strings
let string = "1"; let number = 1; if (parseInt(string) === number){ // STRING AND NUMBER MATCHES } if (string == number){ // STRING AND NUMBER MATCHES ALSO BECAUSE == instead of ===, means it won't compare datasets, only the content } Add solution -
Javascript 2021-11-15 13:25:20
editorconfig javascript example
function set_file_editorconfig_opts(file, config) { try { var eConfigs = editorconfig.parseSync(file); if (eConfigs.indent_style === "tab") { config.indent_with_tabs = true; } else if (eConfigs.indent_style === "space&qu... Add solution -
Javascript 2021-11-14 21:26:21
How to Build a Reading Progress Bar With CSS and JavaScript
// Reading Progress bar in Html, Css and Js // Html Part <div id="progress-bar"></div> // Css Part #progress-bar { --scrollAmount: 0%; background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); width: var(--scrollAm... Add solution -
Javascript 2021-11-14 15:57:24
convert binary to decimal javascript
var digit = parseInt(binary, 2); Add solution -
Java 2021-11-14 08:08:20
WAP in Java to insert a record from a form to table.
import java.io.DataInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Statement; public class ExPrepareStatement { public static void main(String[] args) { try{ Class.forName(&... Add solution -
Javascript 2021-11-13 15:06:11
simple redux implementation
// simplified createStore function const createStore = (yourReducer) => { let listeners = []; let currentState = yourReducer(undefined, {}); return { getState: () => currentState, dispatch: (action) => { currentState = yourRe... Add solution -
Best helpers
Joker13
+5
Remmy Kasili
+5
Anand GV
+5
Manx rat
+5
Jokim
+5
Nitro2k01
+5
Letomkov
+5
Glob Cropper
+5