I want my object jump when collision

Script in play
using UnityEngine;
using System.Collections;

public class jump : MonoBehaviour
{
public float JumpSpeed = 100.0f;
void Jump()
{
GetComponent().velocity = transform.up*10;

}
void OnCollisionEnter(Collision collision)
{

{
if (collider.tag == “jump”)
Jump();
}
}
}

but error Show
Error 1 ‘UnityEngine.Component.collider’ is obsolete: ‘Property collider has been deprecated. Use GetComponent() instead. (UnityUpgradable)’

you answered your question with your last 2 lines… Unity is most of the time telling you, why things are not working. In this case, you are using an older version of the code. So you need to use it like this:

void OnCollisionEnter(Collision collision){
        if (collision.collider.tag == "jump") {
            Jump();
        }
    }