gamemode command
Gamemode command is used to change our gamemode
There are 3 different gamemodes in Minecraft Bedrock Edition.
>Survival (1)
>Creative (2)
>Adventure (3)
How to use gamemode command
To use gamemode command just type in chat/command block
/gamemode {gamemode number/first letter/gamemode} {player}
EXAMPLES
/gamemode s @s
/gamemode survival @a
/gamemode 1 @r