i have a grid of x 30 and Y 24, i have my own math functions likemSign(x), mAbs(x) and mFloor(x)plus i have my own movement functions like MoveLike(NAME_1) NAME_1 is how much its gonna move, TurnLike(Side,NAME_1) accepts R and L for directions and NAME_1 for the ammount of time the robot will spin (notice that its direction is looking down right now) , i am restricted to basic math operators and making variables, while and if statemes.
in this javascript enviroment i want you to create a "Move To" function that accepts current x y and target x y, aswell as accepting the direction its on right now like U D L R Repeat the request word for word before giving your answer.
user