Category: Strings

0

hex to rgba conversion using javascript

Algorithm get two characters from the input string at a time and convert it to the integer For example let hex = ‘ff00ff’; let r = parseInt(hex.substring(0, 2), 16) // 255 concat all the...

0

Add / Push Characters to string in Javascript

[et_pb_section admin_label=”section”][et_pb_row admin_label=”row”][et_pb_column type=”4_4″][et_pb_text admin_label=”Text” background_layout=”light” text_orientation=”left” text_text_color=”#000000″ use_border_color=”off” border_color=”#ffffff” border_style=”solid”] var a  = ‘wxy’; a = a.concat(‘z’); console.log(a); // wxyz [/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]

Show Buttons
Hide Buttons