How to get the Item Stock Baance by using the Custom script

I need a hep to get the Item Stock in the Custom Script

Try:
frappe.db.get_value("Bin", {"item_code": 'your item code', "warehouse": 'your warehouse'}, "actual_qty")

try @Bashir_Soomro

// select item_code from `tabDoctype Name` where item_name='Item Name' and item_group='Item Group'

frappe.call({
    method:"frappe.client.get_value",
    args:{
        doctype: " DOCTYPE NAME ", 
        filters:{
            "item_name":"Item Name", 
            "item_group":'Item Group,
        },
        fieldname:["item_code"], 
        callback:function(r){
            console.log(r.message.item_code);
        }
    }
});

Thanks for the response, i will try and update you accordingly