CodeJourneyQ8
@codejourneyQ8
a person who want to survive to learn coding for living English Teacher, passionate with programing
Tal vez te guste
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 Tendencias
- 1. Howie 6,441 posts
- 2. #MondayMotivation 32.9K posts
- 3. Phillips 500K posts
- 4. Good Monday 45.5K posts
- 5. $IREN 15.1K posts
- 6. Victory Monday 2,033 posts
- 7. #MondayVibes 2,690 posts
- 8. 60 Minutes 107K posts
- 9. #Talus_Labs N/A
- 10. Winthrop 1,063 posts
- 11. Kimberly-Clark 1,446 posts
- 12. Kenvue 4,296 posts
- 13. $QURE 3,960 posts
- 14. #maddiekowalski N/A
- 15. Jets 3rd N/A
- 16. Spinoza 1,753 posts
- 17. Tomorrow is Election Day N/A
- 18. $CIFR 7,521 posts
- 19. #MondayMood 1,367 posts
- 20. St. Martin de Porres N/A
Tal vez te guste
Something went wrong.
Something went wrong.