Difference Between setTimeout and setInterval in JavaScript

Rishi Rathor
Updated on 24-Nov-2023 00:58:53

2K+ Views

setTimeout() function setTimeout( function, duration) − This function calls function after duration milliseconds from now. This goes for one execution. Let’s see an example − It waits for 2000 milliseconds, and then runs the callback function alert(‘Hello’) − setTimeout(function() { alert('Hello');}, 2000); setInterval() function setInterval(function, duration) − This function calls function after every duration milliseconds. This goes for unlimited times. Let’s see an example − It triggers the alert(‘Hello’) after every 2000 milliseconds, not only once. setInterval(function() { alert('Hello');}, 2000);

Create Ordered List with Uppercase Roman Numerals in HTML

Lokesh Badavath
Updated on 24-Nov-2023 00:53:03

2K+ Views

An ordered list is a numbered list of items. It gives you the ability to control the sequence number in the context. Allow us to group a set of related items in lists. HTML support ordered list, unordered list and we have to use the tag, to create ordered list in HTML. The tag defines the ordered list. We use tag to start list of items. The list of items can be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default order is numbers for list items in the context. The tag ... Read More

Return a Random Number Between 1 and 200 with JavaScript

Manikanth Mani
Updated on 24-Nov-2023 00:44:49

2K+ Views

To return a random number between 1 and 200, use the JavaScript's Math.random() and Math.floor() method. Example You can try to run the following code to return a random number in JavaScript.                    document.write(Math.floor(Math.random() * 200) + 1);          

Min-Width and Max-Width Flexbox Issues on Safari

AmitDiwan
Updated on 24-Nov-2023 00:41:11

2K+ Views

To make the Flexbox work on all the web browsers, use the min-width and max-width equivalents of flex. For example, for this − min-width: 40%; max-width: 40%; Use the CSS Shorthand Property. It states flex-grow | flex-shrink | flex-basis as shown in the below syntax − flex: flex-grow flex-shrink flex-basis|auto; For the above, we can set the Flex as − flex: 0 0 40%; Let us now see a Flexbox example that works on all the web browsers. We have two divs inside our parent div parentBox − ... Read More

Create an Ordered List in HTML

Lokesh Badavath
Updated on 24-Nov-2023 00:35:52

3K+ Views

An ordered list is a numbered list of items. It gives you the ability to control the sequence number in the context. Allow us to group a set of related items in lists. HTML supports ordered list and an unordered list. To create ordered list in HTML, we have to use the tag. We use tag to start list of items within the ordered list tag. The list of items can be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default order is numbers for list items in the context. The tag should ... Read More

Use Input Type Field with Date Field in HTML

Lokesh Badavath
Updated on 24-Nov-2023 00:29:36

2K+ Views

In this article, we are going to use input type field with date field in HTML. We use type="date" in the elements to create input fields that let the user enter a date, either with a textbox that validates the input or a special date picker interface. The value includes the year, month, and day. Syntax Following is the syntax to use input type field with date field in HTML. Example Following is the example program to use input type field with date field in HTML. DOCTYPE html> ... Read More

Full Form of BOB

Praveen Varghese Thomas
Updated on 23-Nov-2023 15:59:13

140 Views

Introduction Bank of Baroda (BOB) is a premier Indian bank with a rich history and top-notch As it is a government-owned bank, the Reserve Bank of India and the Government of India both have a hand in the operations of the Bank of Baroda. Vadodara, Gujarat, is the site of the company's headquarters. It's the fourth-biggest banking consortium in the world right now. Since opening its doors in 1908, the company has seen tremendous growth. It caters to the masses by offering essential services like online banking, support from real people, and credit and debit card options. What is the ... Read More

Full Form of BOE

Praveen Varghese Thomas
Updated on 23-Nov-2023 15:58:23

222 Views

Introduction A Bill of Exchange (BOE) is a powerful financial tool to guarantee payment.A merchant may offer his customers the option to pay for their purchases over time with interest if doing so will improve his sales. Selling on credit delays getting paid. The vendor may issue a bill to the buyer for the amount owed. In international commerce, a bill of exchange is a written order obligating one party to pay another party a specified quantity of money either immediately or at a future date. Similar to personal checks and bank promissory notes, bills of exchange may be written ... Read More

Full Form of BOP

Praveen Varghese Thomas
Updated on 23-Nov-2023 15:57:08

433 Views

Introduction BOP or Balance of Payment is the receipt or record made by the residents of a particular country that involves all international financial transactions. When two or more countries are in an export-import business, they keep a BOP for various reasons. BOP is the process of monitoring the financial transactions between countries. It is an important part of large businesses and organizations as it involves huge amounts of money. Each country is required to have a BOP which will help them estimate and allocate money. The BOP involves all the financial statements between different countries, government anatomies, or ... Read More

Full Form of BOSS

Praveen Varghese Thomas
Updated on 23-Nov-2023 15:54:54

869 Views

Introduction To BOSS BOSS, or Bharat Operating System Solutions, is an Indian Linux distribution initially derived from Debian. It acts as an intermediary between the users and the operating systems. CDAC (Centre for Development of Advanced Computing) develops BOSS to enhance and gain profit from the usage of free and open-source software all over India. BOSS has improved the desktop environment integrated with the Indian language guide and other software. The Indian Government endorses the software for usage and implementation across the nation. It is also certified by the Linux Foundation for compliance with LSB (Linux Standard Base). BOSS Features ... Read More

Advertisements