Horje
how to get value and key in a for of loop in js Code Example
how to get value and key in a for of loop in js
const test = {a: 1, b: 2, c: 3};

for (const [key, value] of Object.entries(test)) {
  console.log(key, value);
}




Javascript

Related
ace get contents of editor Code Example ace get contents of editor Code Example
javascript split get last element Code Example javascript split get last element Code Example
how to remove a class in js after 100 milliseconds Code Example how to remove a class in js after 100 milliseconds Code Example
javascript audio stop Code Example javascript audio stop Code Example
has property node js Code Example has property node js Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6