Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add prefix to a string in javascript

const addPrefix = (string, prefix) => {
  const pref = prefix;
  const newText = prefix.concat(string);
  
  return newText;
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #add #prefix #string #javascript
ADD COMMENT
Topic
Name
8+8 =