JSFiddle - React, Tailwind, and code Playground by SriSri M May 19, 2021 HTML input = { 1,3,4,5,6,7,8} ; Total=8, output = 2 JavaScript input = { 1,3,4,5,6,7,8}