Comment nier un javascript variable de la boolena

isAllowed = !isAllowed
Tanishq Vyas