Find the biggest of two numbers using function and ternary operator. Basics of functions: A function is a sub program…