var list =`<ul>`;
for(var i=0;i<filelist.length;i++){
list = list + `<li>${filelist[i]}</li>`
}
list = list + `</ul>`
In the code above, I wrapped the ul tag with a dot (?) on the left side of keyboard number 1, and a compilation error appears Why can't you wrap it up? ' Is there any reason to cover it with?
javascript node.js
Hello, everyone
I'm a beginner too, but... It's supposed to be a quotation mark (because it's a string.
is called Template Strings
const name = 'Nate'
const address = 'Seoul'
console.log(`${name} in ${address}`)
It's used like this!
Another characteristic is When you make a multi-line string, it's made exactly as you wrote it.
let a = 'hello\nworld'; // single quotation
let b = `hello
world`; // backtick
// Both
// // "hello
// // world"
© 2024 OneMinuteCode. All rights reserved.