Basic

Q1: Display the current day and time in the following format. Answer

Sample Output:
Today is : Tuesday.
Current time is : 10 PM : 30 : 38

Today is : Tuesday.
Current time is : 10 PM : 30 : 38


                        

                    
Q2: Create a button to print the contents of the current window. Answer

primary


                        

                    
Q3: Get the current date. Answer

Sample Output:
mm-dd-yyyy, mm/dd/yyyy or dd-mm-yyyy, dd/mm/yyyy

mm-dd-yyyy, mm/dd/yyyy or dd-mm-yyyy, dd/mm/yyyy


                        

                    
Q4: Calculate the area of a triangle where lengths of the three of its sides are 5, 6, 7. Answer
Q5: Rotate the string 'JavaScript' in right direction by periodically removing one letter from the end of the string and attaching it to the front. Answer

Sample Output:
JavaScript


                        

                    
Q6: Determine whether a given year is a leap year in the Gregorian calendar. Answer

                        

                    
Q7: Find the year in which January 1st is being a Sunday From 2014 to 2050. Answer

                        

                    
Q8: Create a program in which a user is prompted to guess an interger between 1 and 10. Answer

                        

                    
Q9: Calculate days left until next Christmas. Answer

                        

                    
Q10: Calculate multiplication and division of two numbers. Answer

                        

                    
Q11: Convert temperature unit between Celsius and Fahrenheit. Answer

                        

                    
Q12: Get the current website URL. Answer