What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-20 07:30:27
php boolean
/** * Strings always evaluate to boolean true unless they have a * value that's considered "empty" by PHP (taken from the * documentation for empty): * "" (an empty string) evaluates as false. * "0" (0 as a string) evaul... Add solution -
Other 2022-03-19 13:10:05
javascript loop an array
let array = ['Item 1', 'Item 2', 'Item 3']; // Here's 4 different ways for (let index = 0; index < array.length; index++) { console.log(array[index]); } for (let index in array) { console.log(array[index]); } for (let value of array) { console... Add solution -
Javascript 2022-03-17 01:45:19
for array javascript
let array = ['Item 1', 'Item 2', 'Item 3']; // Here's 4 different ways for (let index = 0; index < array.length; index++) { console.log(array[index]); } for (let index in array) { console.log(array[index]); } for (let value of array) { console... Add solution -
SQL 2022-03-11 18:30:06
SQLSTATE[HY000] [1040] Too many connections
On a shared hosting, "unlimited" means other users are unrestricted with their resource using. Means they can eat up whole pool, while your consumption remains modest This is a limit of database's configuration. If you have permission to edit ... Add solution -
C 2022-03-05 12:15:01
what is the usage of extern in c
#include <stdio.h> extern int x = 32; int b = 8; int main() { auto int a = 28; extern int b; printf("The value of auto variable : %d\n", a); printf("The value of extern variables x a... Add solution -
Java 2022-03-04 06:40:03
Write a simple java swing application that will display rectangle graphics as shown in the picture below:
import javax.swing.JApplet; /** * A RandomStringsApplet displays 25 copies of a string, using random colors, * fonts, and positions for the copies. The message can be specified as the * value of an applet param with name "message." If no p... Add solution -
Other 2022-02-09 23:50:18
how to swap using bitwise operator
#include<stdio.h> void main() { int a,b; printf("Enter the value of a and b: "); scanf("%d %d", &a, &b); a = a^b; b = b^a; a = a^b; printf("Value of a is: %d\n", a); printf("... Add solution