added logical operations + js examples