AmitDiwan has Published 8358 Articles

Awaiting on dynamic imports in JavaScript.

AmitDiwan

AmitDiwan

Updated on 22-Jul-2020 07:42:30

226 Views

Note − You will need a localhost server to run this example −Following is the code for dynamic imports in JavaScript −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result {       ... Read More

Nesting template strings in JavaScript

AmitDiwan

AmitDiwan

Updated on 22-Jul-2020 07:40:39

628 Views

Following is the code for nesting template strings in JavaScript −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result {       font-size: 20px;       font-weight: 500;       color: ... Read More

Function borrowing in JavaScript.

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:45:55

420 Views

The call(), apply() and bind() are used to borrow methods in JavaScript.Following is the code for borrowing methods in JavaScript −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result, .sample {       ... Read More

How to transform JavaScript arrays using maps?

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:43:53

141 Views

Following is the code to transform JavaScript arrays using maps.Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result, .sample {       font-size: 18px;       font-weight: 500;       color: ... Read More

Is it possible to de-structure to already-declared variables? In JavaScript?

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:39:51

175 Views

Following is the code to de-structure already declared variables in JavaScript −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result {       font-size: 18px;       font-weight: 500;       ... Read More

Is there an elegant way of passing an object of parameters into a function?

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:38:18

107 Views

Following is the code to pass an object of parameters to a function −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result, .sample {       font-size: 18px;       font-weight: 500; ... Read More

How to merge objects into a single object array with JavaScript?

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:35:17

318 Views

Following is the code to merge objects into a single object array −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result, .sample {       font-size: 18px;       font-weight: 500;   ... Read More

Explain JavaScript text alert

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:32:54

245 Views

The JavaScript alert() function is used to display a popup message to the user.Following is the code for the JavaScript alert() function −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    } Javascript text ... Read More

The image() object in JavaScript.

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:31:25

3K+ Views

The image object represents the HTML  element.Following is the code for image object in JavaScript −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result {       font-size: 18px;       font-weight: ... Read More

Can we convert two arrays into one JavaScript object?

AmitDiwan

AmitDiwan

Updated on 21-Jul-2020 07:26:34

240 Views

Following is the code to convert two arrays into one JavaScript object −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .result, .sample {       font-size: 18px;       font-weight: 500;   ... Read More

Advertisements