
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. Texans 36.8K posts
- 2. World Series 106K posts
- 3. CJ Stroud 6,526 posts
- 4. Mariners 90.5K posts
- 5. Blue Jays 92.7K posts
- 6. Seahawks 34.5K posts
- 7. Seattle 51K posts
- 8. Springer 65.4K posts
- 9. Nick Caley 2,462 posts
- 10. Dan Wilson 4,196 posts
- 11. #WWERaw 58.9K posts
- 12. White House 299K posts
- 13. Nico Collins 2,100 posts
- 14. Kenneth Walker 2,481 posts
- 15. Baker 37.1K posts
- 16. Demeco 1,715 posts
- 17. Sam Darnold 4,165 posts
- 18. Bazardo 3,075 posts
- 19. LA Knight 7,737 posts
- 20. Munoz 10.2K posts
Something went wrong.
Something went wrong.