A study by researchers from the University of Alberta has found that children lose sleep and develop bad lifestyle habits when there are electronic devices in the bedroom.