What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-06 00:30:47
convert rgb value in hexadecimal system
function convertRgb(rgb) { // This will choose the correct separator, if there is a "," in your value it will use a comma, otherwise, a separator will not be used. var separator = rgb.indexOf(",") > -1 ? "," : &quo... Add solution -
Javascript 2022-01-30 21:31:17
how to make a string in javascript
var abc = "abcdefghijklmnopqrstuvwxyz"; var esc = 'I don\'t \n know'; // \n new line var len = abc.length; // string length abc.indexOf("lmno"); // find substring, -1 if doesn't contain abc.lastIndexOf("lmn... Add solution