What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-23 07:05:06
{\"code\":\"MANDATORY_NOT_FOUND\",\"details\":{\"api_name\":\"data\"},\"message\":\"required field not found\",\"status\":\"error\"}\n
$moduleIns=ZCRMRestClient::getInstance()->getModuleInstance("Invoices"); //to get the instance of the module $records=array(); $record=ZCRMRecord::getInstance("Invoices",null); //To get ZCRMRecord instance $record->setFieldValue... Add solution -
Javascript 2022-02-22 21:25:11
iterate over node object children
/* HTML */ /* <ul class="navigation__secondary" id="navigation-bar"> <li class="navigation__secondary-item"> <span>Item</span> </li> <li class="navigation__secondary-item active&... Add solution -
Javascript 2022-02-20 05:25:10
javascript max characters string function
const getMaxLetter = (str) => { let max = 0; let maxChar = ''; str.split('').forEach((char) => { if (str.split(char).length > max) { max = str.split(char).length - 1; maxChar = char; } }); return `The max letter is :... Add solution -
Javascript 2022-02-17 18:40:44
loop array of objects
/* new options with IE6: loop through array of objects */ const people = [ {id: 100, name: 'Vikash'}, {id: 101, name: 'Sugam'}, {id: 102, name: 'Ashish'} ]; // using for of for (let persone of people) { console.log(persone.id + ': ' + persone.na... Add solution