Write a JavaScript code block using arrays and generate the current date in words, this should include the day, month and year.

<html>
<head>
<script type = "text/javascript">
    var d = new Date();
    var weekday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
    var monthname = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
    document.write(weekday[d.getDay()] + " ");
    document.write(d.getDate() + ". ");
    document.write(monthname[d.getMonth()] + " ");
    document.write(d.getFullYear());;
</script>
</head>
<body>
   
</body>
</html>

7 comments:


  1. Thanks, Learned a lot of new things from your post! Good creation and HATS OFF to the creativity of your mind.
    Very interesting and useful blog!
    javascript Training in Gurgaon


    ReplyDelete
  2. It is amazing and wonderful to visit your site. Thanks for sharing information; this is useful to us...

    Mean Stack Training in Delhi

    ReplyDelete
  3. Amazing article! I found the points you made to be so relatable. It really made me think. Keep posting content like this

    Delhi Agra Jaipur Tour Package
    Golden Triangle tour Packages

    ReplyDelete
  4. JavaScript Training is an essential step for anyone who wants to build interactive and dynamic websites. It helps learners understand the fundamentals of programming, including variables, functions, loops, events, and object-oriented concepts. With hands-on practice, students can create responsive web applications, improve problem-solving skills, and gain confidence in front-end development. JavaScript is widely used alongside HTML and CSS, making it a core technology for modern web development.

    ReplyDelete
  5. Many online resources, including tutorials powered by Blogger, provide valuable JavaScript training for beginners and advanced learners. These blogs often include step-by-step guides, sample projects, coding tips, and practical exercises that make learning easier. Many online resources, including tutorials powered by Blogger, provide valuable JavaScript training for beginners and advanced learners. These blogs often include step-by-step guides, sample projects, coding tips, and practical exercises that make learning easier. By following Blogger-based tutorials and practicing regularly, learners can strengthen their coding abilities and prepare for careers in web development, software engineering, and full-stack programming.


    By following Blogger-based tutorials and practicing regularly, learners can strengthen their coding abilities and prepare for careers in web development, software engineering, and full-stack programming.


    ReplyDelete


  6. Many online resources, including tutorials powered by Blogger, provide valuable JavaScript training for beginners and advanced learners. These blogs often include step-by-step guides, sample projects, coding tips, and practical exercises that make learning easier. Many online resources, including tutorials powered by Blogger, provide valuable JavaScript training for beginners and advanced learners. These blogs often include step-by-step guides, sample projects, coding tips, and practical exercises that make learning easier. TypeScript TrainingBy following Blogger-based tutorials and practicing regularly, learners can strengthen their coding abilities and prepare for careers in web development, software engineering, and full-stack programming.

    ReplyDelete