A small problem with javascript

Today, when I was writing php code, I suddenly found

$b="test";
$par1=1;
$par2=2;
$a->{$b}($par1,$par2);

so how to implement it in javascript?

-sharpeval().eval().
var f=data.type;//1string
console.log(f);
toastr.f(data.message);//..
Jun.25,2021

toastr[f](data.message)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3837d-2c0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3837d-2c0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?