What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-27 14:52:18
js convert variable value to string
let num1 = 10 let num2 = 4 let sum = num1 + num2 console.log(sum) //normal result = 14 //use the String() method to convert the numbers into strings let num1 = String(10) let num2 = String(4) let sum = num1 + num2 console.log(sum) //new result = "10... Add solution -
C# 2021-10-22 16:25:07
c# identical strings not equal
/* Reflection can use characters that look like other characters, but are actually different! Reflection boxes the values twice into new objects and == will compare by reference. Try using object.Equals(currentValue, newValue) instead or convert the ob... Add solution -
C# 2021-10-22 15:59:06
casting in c#
// --------------------- TYPE CONVERSION --------------------- // // Implicit conversion float varFloat = 12.7f; double varDouble = varFloat; // converts float => double // Explicit conversion (casting) double varDouble = 2.3; int varInt = (int) ... Add solution