Caution: Always disconnect a cord at both ends before working on it.
Because extension cords are a safety hazard, some local electrical codes forbid their use. Check your local code before undertaking a repair; you may have to discard your extension cord.
New electrical codes require receptacles every 6 feet along the walls; this rule doesn’t apply to older homes. If you must use an extension cord, remember it is only a temporary connection. Unplug it and store it after each use. Most extension cords are marked with an ampere rating. Never exceed the rating; it could start a fire.
If a cord’s insulation is frayed or cracked or the wire is exposed, discard the cord and buy a new one. If the cord’s plug or its receptacle on the other end is damaged, replace either with a new one.