CodeJourneyQ8
@codejourneyQ8
a person who want to survive to learn coding for living English Teacher, passionate with programing
Was dir gefallen könnte
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. Marshawn Kneeland 37.7K posts
- 2. Nancy Pelosi 50.9K posts
- 3. Craig Stammen 1,293 posts
- 4. #MichaelMovie 56.4K posts
- 5. Pujols N/A
- 6. Gordon Findlay N/A
- 7. #NO1ShinesLikeHongjoong 34.8K posts
- 8. #영원한_넘버원캡틴쭝_생일 34.1K posts
- 9. Eli Lilly 2,822 posts
- 10. Baxcalibur 5,401 posts
- 11. Chimecho 7,899 posts
- 12. Gremlins 3 4,328 posts
- 13. Joe Dante N/A
- 14. ESPN Bet 2,970 posts
- 15. Dallas Cowboys 13.7K posts
- 16. Jaafar 16.5K posts
- 17. GLP-1 3,193 posts
- 18. Preller N/A
- 19. Chris Columbus 3,884 posts
- 20. Letterboxd 12.8K posts
Was dir gefallen könnte
Something went wrong.
Something went wrong.