- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Karthikeya Boyini has Published 2383 Articles
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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
karthikeya Boyini
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!