|
|
|
|
|
by manigandham
1786 days ago
|
|
How is it invalid? Here's the syntax about a for..in loop: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... for (variable in object) {
statement
}
The only difference in Vue is not having to explicitly declare the variable. But so what?You said "strings are magic and not code" to which I said "all code is text so there are no magic strings". Now you and the other poster keep saying "well this string isn't the same syntax as JS" but I don't see what the point is. Why does it have to be valid JS? Again, you can embed syntax within each other just fine. JSX has HTML tags inside JS. HTML has tags like <style> and <script> for other languages (regardless of what the default language is or what parses it). So, for the last time, what's the actual argument? |
|