JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Sample Code</title>
<link rel="stylesheet" href="css\styles.css">
</head>
<body>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<script src="js\main.js"></script>
</body>
</html>
JavaScript
$(function() {
let i = 0;
let obj = {"apple":"リンゴ", "banana": "バナナ", "orange": "オレンジ"};
jQuery.each(obj, function(prop, val) {
$("li").eq(i).text(prop + " → " + val);
i++;
});
});