Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ES6: Set Default Parameters for Your Functions

const resultDisplayArray = []; 
for(let i = 0; i < result.failure.length; i++) {
resultDisplayArray.push(`<li class="text-warning">${result.failure[i]}</li>`); 
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Set #Default #Parameters #Your #Functions
ADD COMMENT
Topic
Name
3+8 =