how to make your object move from point A to point B?

how to make your object move from point A to point B on itself without restriction
complete beginner in programming problem and javascript

@AzMar18
There are several methods to achieve and would depend on what you were looking to do. One method would be by using the method Vector3.Lerp within a Coroutine. For example:

GameObject objectToMove;
GameObject objectToMoveTo;
StartCoroutine(objectToMove, objectToMoveTo.transform.position);

public IEnumerator MoveObject(GameObject obj, Vector3 newPosition)
{
    // get player seat number
    Vector3 startPosition = obj.transform.position;
    float timer = Time.time;

    while (pokerChip.transform.position != newPosition)
    {
        obj.transform.position = Vector3.Lerp(startPosition, newPosition, Time.time - timer);
        yield return new WaitForSeconds(0.02f);
    }
    yield return new WaitForSeconds(0.5f);
}