Its all about the coding only..!!
var array = [1,2,3,4];
array.reduce((acc, b, index) => {
acc[index] *=2;
return acc;
}, array);
console.log(array);
<!DOCTYPE html> <html> <head> <script src="https://unpkg.com/react@18/umd/react.development.js" crossori...
No comments:
Post a Comment