Get base URL and current URL in the template file in Magento 2

Get base URL and current URL in the template file in Magento 2

$block->getUrl(‘hello/test’);
$block->getBaseUrl();