how to fix my error

Assets\movement.cs(8,27): error CS1003: Syntax error, ‘,’ expected

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class movement : MonoBehaviour
{
  
   public float movespeed 10f;


   public Rigidbody2D rb;


    // Start is called before the first frame update
    void Start()
    {
        rb = getComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}

You forgot the ‘=’:

public float movespeed = 10f;

oh yeah

well i did it and now
Assets\movement.cs(17,14): error CS0103: The name ‘getComponent’ does not exist in the current context

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class movement : MonoBehaviour
{
  
public float movespeed = 10f;


   public Rigidbody2D rb;


    // Start is called before the first frame update
    void Start()
    {
        rb = getComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}

getComponent should be GetComponent

ok

Assets\movement.cs(25,63): error CS1003: Syntax error, ‘,’ expected new code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class movement : MonoBehaviour
{
  
public float movespeed = 10f;


   public Rigidbody2D rb;


    // Start is called before the first frame update
    void Start()
    {
        rb =GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
     //"a" = "-1"
     //"d" = "1"
   Vector3 movement = new Vector3(input.GetAxis("horizontal") 0f 0f );
   transform.position += movement * Time.deltaTime * movespeed;
    }
}

you forgot the , between 0f and 0f in line 25.

it has to be Vector3 movement = new Vector3(input.GetAxis("horizontal") 0f, 0f );

its still there

ahh yeah sry, missed another , before the first 0f

Vector3 movement = new Vector3(input.GetAxis("horizontal"), 0f, 0f );

if you have different parameters for a method you have to “split” them each time with ,

Assets\movement.cs(25,35): error CS0103: The name ‘input’ does not exist in the current context

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class movement : MonoBehaviour
{
  
public float movespeed = 10f;


   public Rigidbody2D rb;


    // Start is called before the first frame update
    void Start()
    {
        rb =GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
     //"a" = "-1"
     //"d" = "1"
   Vector3 movement = new Vector3(input.GetAxis("horizontal"), 0f, 0f );
   transform.position += movement * Time.deltaTime * movespeed;
    }
}

Input with a big I.

If you use Visual Studio you should have auto-complition, that should actually solve problems like that.

i dont i download it from not unity