
CodeJourneyQ8
@codejourneyQ8
a person who want to survive to learn coding for living English Teacher, passionate with programing
قد يعجبك
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 الاتجاهات
- 1. Ohtani 210K posts
- 2. Dodgers 256K posts
- 3. World Series 60.1K posts
- 4. Carson Beck 16.4K posts
- 5. $SAWA 1,583 posts
- 6. Miami 100K posts
- 7. Louisville 28.1K posts
- 8. Nebraska 17.9K posts
- 9. Brewers 56K posts
- 10. Emiru 6,236 posts
- 11. Babe Ruth 3,313 posts
- 12. NLCS 60.2K posts
- 13. #SmackDown 57.4K posts
- 14. Rhule 4,629 posts
- 15. #BostonBlue 7,799 posts
- 16. 3 HRs 10.2K posts
- 17. NOCHE IS BACK 20.9K posts
- 18. Massie 29.6K posts
- 19. 10 Ks 4,624 posts
- 20. George Santos 82.3K posts
Something went wrong.
Something went wrong.