We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b4079 commit ad06eeaCopy full SHA for ad06eea
docs/3-web-servers/04-server/index.mdx
@@ -219,10 +219,8 @@ const app = express();
219
const names = ["田中", "鈴木", "佐藤"];
220
app.get("/", (request, response) => {
221
const index = fs.readFileSync("./index.html", "utf-8");
222
- const html = index.replace(
223
- "{users}",
224
- names.map((user) => `<li>${user}</li>`).join(""),
225
- );
+ const usersAsHTML = names.map((user) => `<li>${user}</li>`).join("");
+ const html = index.replace("{users}", usersAsHTML);
226
response.send(html);
227
});
228
0 commit comments