What is Curl?
How did you open this website? Either you entered JoysofProgramming.com in your browser address bar or you came here from some search engine. There are multiple ways by which you can open a website. Opening a website from the browser is one of the many ways. It is possible to open a website from the [...]
How to display the time in human readable format in JavaScript?
Date givesmany functions like getTime(), Date() to display the time. Date() returns an object which displays the time in the UTC format. But to display in a format of your choice <head> <title>Time in JavaScript</title> </head> <body> <script type="text/javascript"> <!– var time = new Date(); var year = time.getFullYear(); var month = time.getMonth()+1; var date1 [...]
How to get the Unix Time in JavaScript?
Using Date, we can display the time in UTC. getTime() can be used to get the time in epochs often known as the Unix Time or the Epoch Time, which is the number of seconds passed since January 1, 1970 <head> <title>Unix Time in JavaScript</title> </head> <body> <script type="text/javascript"> <!– var time = new Date(); [...]
Hello World: JavaScript
JavaScript is useful to improve the layout of an HTML page giving the programmers to create a page of choice based on various parameters (dyanamically). A simple javascript function will look like <head> <title>Hello World in JavaScript</title> </head> <body> <script type="text/javascript"> <!– document.write("Hello World!"); –> </script> </body> Now open your browser and enter the path [...]