Planck's constant = Energy ÷ Frequency, from E = hν
Put in the dimensions of each part: [ML²T⁻²] ÷ [T⁻¹] = [M L² T⁻¹].
The SI unit of planck's constant is J·s.
These quantities have exactly the same dimensions, a favourite trick in JEE and NEET "which pair has the same dimensions" questions:
Can you get today's formula in one try?Play MLT, the free daily dimensional formula game