how to move object itself

how we can move object from x to y direction itseslf in 2d script…plz tell the script.

how is it moving now? Instead of moving the game object along the x-axis, change the code so it’s on the y-axis?

What code are you using?

Have you gone through some beginner tutorials, already?
This is a good collection to get you started, created by Unity: https://unity3d.com/learn/beginner-tutorials