Write the return data type of the following function.
(i) endsWith( )
(ii) log ( )
(i) boolean
(ii) double