store code on phtml page magento 2

public function getStoreCode()
    {
        return $this->_storeManager->getStore()->getCode();
    }