Hello im new in Javascript please someone can help me to create a function that can return me the cxd value my code is this but i need to return me like a value, not console.log or alert.
var url_str = 'http://blablabla=Cell&utm_mediun=test&cxd=cxd_2288_356025';
var url = new URL(url_str).searchParams.get('cxd').split('_');
console.log(url1[1]);