Stepladder for fastening the platform to the frame