Karthikeya Boyini has Published 2383 Articles

Map.delete() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 12:14:47

5K+ Views

The delete() function of Map object accepts a string representing the key of an element of a map and deletes from the current Map object. This function returns true if the specified key exists in the map object else it returns false.SyntaxIts Syntax is as followsmapVar.delete()Example Live Demo    JavaScript ... Read More

Map.forEach() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 12:12:40

62 Views

The forEach() function of Map object returns an iterator of the corresponding Map object and using this you can retrieve the key Value pairs of the map.SyntaxIts Syntax is as followsmapVar.forEach()Example Live Demo    JavaScript Example           var mapVar = new Map();     ... Read More

Java Program to remove the leading and trailing quotes from a string

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 12:11:51

2K+ Views

Firstly, let us consider a string with quotesString originalStr = "\"Demo Text\"";Now, consider the following logic for the beginning quote.if (originalStr.startsWith("\"")) {    originalStr = originalStr.substring(1, originalStr.length()); }Now, consider the following logic for the ending quote.if (originalStr.endsWith("\"")) {    originalStr = originalStr.substring(0, originalStr.length() - 1); }Example Live Demopublic class Demo { ... Read More

Map.has() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 12:11:14

234 Views

The has() function of Map object accepts a key in string format and returns a boolean value, if specified key exists it returns true else returns false.SyntaxIts Syntax is as followsmapVar.has()Example Live Demo    JavaScript Example           var mapVar = new Map();     ... Read More

JSON. stringify( ) function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 12:03:07

210 Views

The stringify() function of a JSON object accepts a JSON string, and constructs an object based on the given text and, returns it.SyntaxIts Syntax is as followsJson.stringify();Example Live Demo    JavaScript Example           var jsonSample = '{Tutorial: Java, Version:8}';       jsonObj = ... Read More

Date.toISOString() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 11:51:40

143 Views

The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, ... Read More

Repeat a radial gradient with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 11:49:41

218 Views

Use the repeating-radial-gradient() function to repeat radial gradient.You can try to run the following code to implement repeating-radial-gradient() function in CSSExampleLive Demo                    #demo {             height: 300px;             background: repeating-radial-gradient(green 20%, orange 40%, maroon 40%);          }                     Repeating radial gradient          

Java Program to Match Dates

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 11:49:33

129 Views

Firstly, we have considered the following two dates.SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd"); Date d1 = s.parse("2018-10-15"); Date d2 = s.parse("2018-11-10");Now, use the compareTo() method to compare both the dates. The results are displayed on the basis of the return value.if (d1.compareTo(d2) > 0) {    System.out.println("Date1 is after Date2!");   ... Read More

CSS Alpha Channel filter

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 11:42:26

1K+ Views

The Alpha Channel filter alters the opacity of the object, which makes it blend into the background. The following parameters can be used in this filter −ParameterDescriptionOpacityLevel of the opacity. 0 is fully transparent, 100 is fully opaque.finishopacityLevel of the opacity at the other end of the object.StyleThe shape of the ... Read More

Set bottom-left corner border with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 11:41:12

465 Views

Use the border-bottom-left-radius property to set the border of the bottom left corner. You can try to run the following code to implement the border-bottom-left-radius propertyExampleLive Demo                    #rcorner {             border-radius: 25px;             border-bottom-left-radius: 45px;             background: blue;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Advertisements