Convert script from javascript to C#

Can anybody convert my javascript code to C#, because i don’t have idea how to make it. Thanks.
Here my code:

#pragma strict
var jumpHeight = 800;
private var isFalling = false;

function Start () {

}

function Update () {
	if (Input.GetKeyDown(KeyCode.W) && isFalling == false)
	{
		rigidbody.velocity.y = jumpHeight;
	}
	isFalling = true;
}

function OnCollisionStay ()
{
	isFalling = false;
}

using UnityEngine;
using System.Collections;

public class NameOfScriptFile : MonoBehaviour {

    public int jumpHeight= 800;
    private bool isFalling = false;
     
    void Update () {
        if (Input.GetKeyDown(KeyCode.W) && isFalling == false)
        {
            rigidbody.velocity.y = new Vector3(rigidbody.velocity.x, jumpHeight, rigidbody.velocity.z);
        }
        isFalling = true;
    }
     
    void OnCollisionStay(Collision other)
    {
        isFalling = false;
    }
}

NameOfScriptFile should be the name of your script file and also the name of your class

Note: Kindly take a note that UA is not here to convert your scripts for you. It is severely frowned upon and against the guidelines of asking questions. Helping you out since it’s your first time. It will be better for you if you learn to do it yourself.

public class MyClass : MonoBehaviour
{

    [SerializeField] int jumpHeight = 800;
    private bool isFalling = false;

    void Update()
    {
        if (Input.GetKeyDown(KeyCode.W) && isFalling == false)
        {
            Vector3 vel = new Vector3(rigidbody.velocity.x, jumpHeight, rigidbody.velocity.z);
            rigidbody.velocity = vel;
        }
        isFalling = true;
    }

    void OnCollisionStay()
    {
        isFalling = false;
    }
}

This should do it.