Delete operator helps to delete the properties from an object. In this code, x is not used as an object but a local variable. Delete operators do not have any effect on local variables.