I am not a fan of bungee cords because they usually don’t hold well. Evidence of this is the number of cords that I’ve picked up along the highway during my runs. But I found a use for them as a means of holding trash can liners in place on my large workshop trash can. — Ed Hunkele
Simply overhang the trash bag along the top of the trash can and secure the bungee cord on top of the bag. You can hook two bungee cords together, if one isn’t long enough to go around the top of your trash can.