Spacebar Jump

Im trying to control the amount of jump my player has, but im not getting anything, not sure what im missing/not seeing. thanks in advance :pray:

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

public class WSv3 : MonoBehaviour
{
    public Rigidbody rb;
    public float jumpForce;
    float speed = 5.0f;
    float _speedMultiplier = 1f;
    // Start is called before the first frame update
    void Start()
    {
        speed = 50f;
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey(KeyCode.W))
        {
            transform.Translate(Vector3.forward * Time.deltaTime * speed * _speedMultiplier );
        }
        if (Input.GetKey(KeyCode.S))
        { 
            transform.Translate(-1 * Vector3.forward * Time.deltaTime * speed * _speedMultiplier );
        }
        if (Input.GetKeyDown("left shift"))
        {
            _speedMultiplier = 3f;
        }
        if (Input.GetKeyUp("left shift"))
        {
            _speedMultiplier = 1f;
        }
        if (Input.GetKeyDown(KeyCode.Space))
        {
            playerRb.AddForce(Vector3.up * 100, ForceMode.Impulse);
        }
    }
}

The rb variable seems to be called public Rigidbody rb; but the spacebar is trying to apply force to a rigidbody called playerRb

Try changing the last if-statement to:

if (Input.GetKeyDown(KeyCode.Space))
{
    rb.AddForce(Vector3.up * 100, ForceMode.Impulse);
}

like the other guy said the rigid body seems to be called rb but here it says playerRb
and you have a jump force variable but use Vector3.up * 100 instead of vector3.up * jumpForce