
CodeJourneyQ8
@codejourneyQ8
a person who want to survive to learn coding for living English Teacher, passionate with programing
You might like
D-3 another easy method for loop array.forEach and the anonymous function inside fun we usually use the singular of the array posts.forEach(function(post){ console.log(post); }) #js #100DaysOfCode
D-2 passing specific array data from js to ejs 1.local array var in js var b= []; to add more [] use .push() use for loop inside ejs <% for loop >% and pass data in console.log *posts[i].title #js #100DaysOfCode
D-2 how to use res.render vs res.redirect redirect forced navigation to a different URL and should never be part of any standard rendering process #js #100DaysOfCode
D-2 input for one line textarea used for multi line input in html we used label to named the input section label + textarea inside div become perfect UI #javascript #100DaysOfCode
D-2 pass date html to server <form action="/compose" method="post"><input type="text" name="textCompose"><button type="submit" name="button">Publish</button></form> server side app.post("/compose",function(req,res){c.log(req.body.textCompose); })#100DaysOfCode
how to use modules with js 1- create new file 2- declarer that file in the main app.js const date = require(__dirname+"/date.js"); 3- now you can use it const day = date.getDate(); #100dayscoding #100daysofcodechallenge
United States Trends
- 1. #SixKingsSlam 4,971 posts
- 2. Semaj Morgan N/A
- 3. Dork Cult Protest Day 21.7K posts
- 4. Vandy 3,855 posts
- 5. Araujo 566K posts
- 6. Duke 73.3K posts
- 7. #GoBlue 1,378 posts
- 8. College Gameday 2,111 posts
- 9. Gil Manzano 24.3K posts
- 10. Andrew Marsh N/A
- 11. Jelly Roll 1,213 posts
- 12. Pavia 1,349 posts
- 13. Haaland 46.1K posts
- 14. Girona 41.8K posts
- 15. Mateta 10.6K posts
- 16. Bournemouth 19.8K posts
- 17. Vanderbilt 3,947 posts
- 18. Saban 7,658 posts
- 19. Georgia Tech 3,020 posts
- 20. Harlem Berry N/A
You might like
Something went wrong.
Something went wrong.