Homejavascript How to get Index and Value of array element using For-In loop in JavaScript byTECHCOOLBOY ADMIN •June 17, 2021 0 In ForIn loop,<script> let feildsArr = ['offer', 'warr', 'size', 'color', 'highlight', 'payops', 'services'] for (const key in feildsArr) { console.log(key); console.log(feildsArr[key]); }</script> Tags: javascript Facebook Twitter