Question: how turn off iphone x?
Answer: Press and hold either volume button and the side button until the power off slider appears.
Drag the slider, then wait 30 seconds for your device to turn off.
To turn your device back on, press and hold the side button (on the right side of your iPhone) until you see the Apple logo.