In NaOCl, we have one sodium atom, one oxygen atom, and one chlorine atom. Sodium is a group 1 element and always has an oxidation number of +1. Oxygen is a group 16 element and usually has an oxidation number of -2, except in peroxides where it is -1. In order for the compound to be neutral, the oxidation number of Cl must be +1.