problem-solving by JS

javaScript learning


redux-flow

JS vs JSX


“try…catch” syntax

react-calendar


const totalSalary = staffs.reduce((sum, staff) => sum+staff.salary_k, 0);

Output:

Written By & Best Regards


Final-Step:

const total = nums.reduce((sum, num) => sum+num, 0)

At a Glance:

Written By & Best Regards

Md Touhedul Haque

Frontend (React) || MERN stack developer, Zürich, Switzerland.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store