lavina_bridge/webpages/tutorials/js-book/example1.html

18 lines
429 B
HTML
Raw Normal View History

2024-08-06 15:59:31 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JsBook</title>
</head>
<body>
<h1>Пересчет величин</h1>
<script type="text/javascript">
const ins = window.prompt("Дюймы");
const cens = ins * 2.54;
window.document.write('<p>', cens, '</p>');
</script>
</body>
</html>