
CodeJourneyQ8
@codejourneyQ8
a person who want to survive to learn coding for living English Teacher, passionate with programing
Bạn có thể thích
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 Xu hướng
- 1. Flacco 42.3K posts
- 2. Bengals 54.2K posts
- 3. Bengals 54.2K posts
- 4. Tomlin 9,865 posts
- 5. Chase 91.7K posts
- 6. Ramsey 11.7K posts
- 7. #TNFonPrime 3,744 posts
- 8. Max Scherzer 9,158 posts
- 9. #HereWeGo 8,670 posts
- 10. Darnell Washington 2,159 posts
- 11. Ace Frehley 78.6K posts
- 12. #PITvsCIN 4,572 posts
- 13. Cuomo 64.2K posts
- 14. #WhoDey 3,745 posts
- 15. DJ Turner 2,150 posts
- 16. Zac Taylor 1,808 posts
- 17. DK Metcalf 3,000 posts
- 18. TJ Watt 2,644 posts
- 19. #GreysAnatomy 3,790 posts
- 20. Cincy 2,998 posts
Bạn có thể thích
Something went wrong.
Something went wrong.