Challenge #1 for Node.js

+1 Hugo Hammarstrom · April 6, 2015
The code snippet thing isn´t working for me so I paste it in plain text

<!DOCTYPE html>
<html>
  <head>
    <title>Bonan999games</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
  <% include templates/header.ejs %>
    <h3><%= videodata.categoryName %></h3>

<u1> 
<% videodata.categories.forEach(function(item){ %>
<li><a href= <%= "https://www.thenewboston.com/videos_food.php?cat=" + item.categoryID%>><%= item.categoryName%></a></li>
<% }); %>
    </u1>

  </body>
</html>




Post a Reply

Replies

Oldest  Newest  Rating
+1 Rehman . · April 6, 2015
Yes, the code isn't showing properly maybe he didn't even put that syntax in code area
+1 Paul Bensan · May 15, 2015
<% videodata.categories.forEach(function(item){ %>
<li><a href= "https://www.thenewboston.com/videos_food.php?cat=<%= item.categoryID %>" ><%= item.categoryName %></a></li>

:)
0 Pere Garau Burguera · April 6, 2015
Is it only me, or the code is not showing correctly? 
0 imran h · April 6, 2015
this work for me


 
    madaripur
   
 
 
   
    
    is name
   
   
   
        
            

        
        
   
 
0 imran h · April 6, 2015
a tag must be within " " tag. thats why Hugo's code won't work.
0 Joram Kimata · April 8, 2015
// I think the reason is below




should be include " = "

  • 1

Node.js

87 followers
About

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Links
Moderators