const a = promise().then((result) => {
console.log(result)
return 'Ммм, пельмешки!'
})
console.log(a); // PromiseResult 'Ммм, пельмешки!'
<article class="element">
<img class="element__image" src="./images/elbrus.jpg" alt="Гора Эльбрус">
<button type="button" class="element__delete-button"></button>
<div class="element__container">
<h2 class="element__title">Гора Эльбрус</h2>
<button type="button" class="element__like-button"></button>
</div>
</article>
npm web3 -v
function sendViaCall(address payable _to) public payable {
// Call returns a boolean value indicating success or failure.
// This is the current recommended method to use.
(bool sent, bytes memory data) = _to.call{value: msg.value}("");
require(sent, "Failed to send Ether");
}
const undefinedVar = undefined ;
if (undefinedVar) console.log("этот консоль лог никогда не будет выполнен")
if (variableThatWasNotDefined) console.log("variableThatWasNotDefined не была объявлена, поэтому будет ошибка")