What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-16 13:26:07
add new key value pair to object javascript
// original object { key1: "a", key2: "b"} var obj = { key1: "a", key2: "b" }; // adding new filed - you can use 2 ways obj.key3 = "c"; // static // or obj["key3"] = "c"; // dy... Add solution -
C 2021-10-12 10:17:05
how to stop scanf from adding a new line in c
For a simple solution, you could add a space before the format specifier when you use scanf(), for example: scanf(" %c", &ch); The leading space tells scanf() to skip any whitespace characters (including newline) before reading the next char... Add solution -
Shell/Bash 2021-10-11 15:50:03
kubernetes on windows 10
install kubernetes on windows 10 follow this step by step 1. install chocolatey , follow this link https://bit.ly/2XQg2kh, before install chocolatey run as powershell 2. after install chocolatey , typing choco install kubernetes-cli in your cli 3. goto ... Add solution -
Java 2021-10-09 19:04:06
java program to search item from name in class
import java.io.File; import java.io.FileNotFoundException; import java.util.* public class Catalog{ private static int MAX_ITEMS = 10; private Products[] list; private int nextItem; /** * Default constructor */ publi... Add solution