concatbinary

CF

function concatBinary

The function/method concatBinary accepts two arguments num1 and num2 representing two integer values. The…