Which code creates a template in Backbone.js?
Correct Answer: <script type="text/template" id="website-list-template"> <table> <thead> <tr> <th>Name</th> <th>Aboutme</th> <th>Portfolio</th> </tr> </thead> <tbody> <% _.each(pages, function(web) { %> <tr> <td><%= web.get('name') %></td> <td><%= web.get('aboutme') %></td> <td><%= web.get('portfolio') %></td> </tr> <% }); %> </tbody> </table> </script>
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More BackBone.js MCQ Questions