Trending questions in Java

0 votes
1 answer

How to send an email from JavaScript

Javascript does not natively support email sending. However, you may access the user's mail client: window.open('mailto:test@example.com'); There are also some parameters to pre-fill ...READ MORE

Nov 8, 2022 in Java by Damonlang
• 700 points
391 views
0 votes
1 answer

Refresh a page using JavaScript or HTML

window.location.reload(); in JavaScript <meta http-equiv="refresh" content="1"> in HTML ...READ MORE

Nov 7, 2022 in Java by Damonlang
• 700 points
470 views
0 votes
0 answers

How do you use the ? : (conditional) operator in JavaScript?

In simple words, what is the ?: ...READ MORE

Nov 9, 2022 in Java by Nicholas
• 7,760 points
351 views
0 votes
0 answers

Difference between Relative path and absolute path in javascript

Have small clarifications, As of my knowledge, these ...READ MORE

Nov 8, 2022 in Java by Nicholas
• 7,760 points
395 views
0 votes
1 answer

Base64 encoding and decoding in client-side Javascript

Some browsers, including Firefox, Chrome, Safari, Opera, ...READ MORE

Nov 4, 2022 in Java by Damonlang
• 700 points
538 views
0 votes
1 answer

What is location.search in javascript

http://example.com/index.php?foo=bar location.search > ?foo=bar ...READ MORE

Nov 8, 2022 in Java by Damonlang
• 700 points
271 views
0 votes
1 answer

The difference between Classes, Objects, and Instances

A class is a type of blueprint ...READ MORE

Jun 7, 2022 in Java by pranav
• 2,590 points
6,914 views
0 votes
0 answers

javascript Image tag

I'm adding an image snapshot of a ...READ MORE

Nov 8, 2022 in Java by Nicholas
• 7,760 points
271 views
0 votes
0 answers

What is the difference between ( for... in ) and ( for... of ) statements?

I'm familiar with a for... in loop (it iterates over the keys), but this is the first I've heard of a for... of loop (it iterates over values). I don't understand the for...of loop. var arr = [3, 5, 7]; arr.foo ...READ MORE

Nov 9, 2022 in Java by Nicholas
• 7,760 points
197 views
0 votes
0 answers

What's the best way to convert a number to a string in JavaScript?

What method is the "best" for convert ...READ MORE

Nov 8, 2022 in Java by Nicholas
• 7,760 points
241 views
0 votes
0 answers

What is the "debounce" function in JavaScript?

The JavaScript "debouncing" feature piques my attention. Unfortunately, the code is not presented in a way that I can comprehend.  How does it function (my comments are below)? I just do not understand how this works, to put it briefly. // Returns a function, ...READ MORE

Nov 8, 2022 in Java by Nicholas
• 7,760 points
222 views
0 votes
0 answers

How can I get query string values in JavaScript?

Is there a method to retrieve query ...READ MORE

Nov 8, 2022 in Java by Nicholas
• 7,760 points
195 views
0 votes
1 answer

Unrecognized SSL message, plaintext connection? Exception

It is due to the fact that ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
11,325 views
0 votes
1 answer

Which equals operator (== vs ===) should be used in JavaScript comparisons?

I hope this is what you're looking for: const today = new Date(); const yyyy = ...READ MORE

Nov 4, 2022 in Java by Damonlang
• 700 points
277 views
0 votes
1 answer

Using setTimeout to delay timing of jQuery actions

The JavaScript setTimeout () function  is used ...READ MORE

May 30, 2022 in Java by gaurav
• 23,260 points
7,151 views
0 votes
0 answers

send images on whatsapp web with javascript DOM

I currently have the script that delivers ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
1,332 views
0 votes
0 answers

Page Redirect after X seconds wait using JavaScript

After displaying an error notice, I need to redirect to a specified URL after 5 seconds.  First, I utilized Javascript as seen below. document.ready(window.setTimeout(location.href = "https://www.google.co.in",5000)); However, it is not ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
956 views
0 votes
0 answers

Spring Maven clean error - The requested profile "pom.xml" could not be activated because it does not exist

I am  getting this message when I ...READ MORE

May 8, 2022 in Java by Kichu
• 19,050 points
7,066 views
0 votes
1 answer

window.location.href and window.open () methods in JavaScript

To answer your question, first of all, ...READ MORE

Feb 9, 2022 in Java by Rahul
• 9,670 points
10,806 views
0 votes
0 answers

How to convert an Object {} to an Array [] of key-value pairs in JavaScript

I'd want to transform the following object: {"1":5,"2":7,"3":0,"4" ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
858 views
0 votes
0 answers

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

This is the exception on getConnection(): java.sql.SQLException: Access denied ...READ MORE

May 16, 2022 in Java by Kichu
• 19,050 points
6,605 views
0 votes
0 answers

How do I copy to the clipboard in JavaScript?

How can I copy text to the ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
555 views
0 votes
0 answers

What is VanillaJS?

I have a simple query that has ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
466 views
0 votes
0 answers

Generate random number between two numbers in JavaScript

Is it possible to use JavaScript to ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
454 views
0 votes
0 answers

Generating random whole numbers in JavaScript in a specific range

How can I create random whole numbers ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
436 views
0 votes
0 answers

How to sort an array of integers correctly

Trying to retrieve the greatest and lowest ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
436 views
0 votes
0 answers

How do I check if an array includes a value in JavaScript?

What is the shortest and most efficient ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
435 views
0 votes
0 answers

What is the difference between "let" and "var"?

Although I've heard that it's referred to ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
384 views
0 votes
0 answers

How to filter object array based on attributes?

The real estate house objects in my ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
384 views
0 votes
0 answers

How do I replace all occurrences of a string in JavaScript?

Given a string: s = "Test abc test ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
377 views
0 votes
0 answers

What 'type' of Language is JavaScript?

The structure of programming languages is frequently ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
364 views
0 votes
0 answers

What does document.forms mean in javascript?

What do the terms document.cookie, document.forms, and.value ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
353 views
0 votes
0 answers

How to convert decimal to hexadecimal in JavaScript

In JavaScript, how do you translate decimal ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
352 views
0 votes
0 answers

Define a global variable in a JavaScript function

Can a global variable be defined in ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
354 views
0 votes
0 answers

JavaScript Array splice vs slice

What is the distinction between splice and ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
351 views
0 votes
0 answers

Generating PDF files with JavaScript

I was hoped that I could accomplish ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
294 views
0 votes
0 answers

Convert javascript array to string

I'm attempting to loop through a "value" ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
294 views
0 votes
0 answers

How to write palindrome in JavaScript

I'm wondering how to construct a palindrome ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
272 views
0 votes
0 answers

How do you reverse a string in-place in JavaScript?

Without utilizing built-in methods (.reverse(),.charAt(), etc.), how ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
273 views
0 votes
0 answers

What is property in hasOwnProperty in JavaScript?

Consider: if (someVar.hasOwnProperty('someProperty') ) { // Do something(); } ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
265 views
0 votes
0 answers

What is event bubbling and capturing?

What is the distinction between event bubbling ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
249 views
0 votes
0 answers

creating list of objects in Javascript

Is it feasible to make a list ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
248 views
0 votes
0 answers

What is the difference between ' and " in JavaScript?

When creating strings in JavaScript, the character'or ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
239 views
0 votes
0 answers

window.onload vs document.onload

Which is more popular: window.onload or document.onload? READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
237 views
0 votes
0 answers

What is the !! (not not) operator in JavaScript?

I encountered some code that appears to ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
235 views
0 votes
0 answers

What is lexical scope?

What is a concise overview of lexical ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
235 views
0 votes
0 answers

Remove duplicate values from JS array

I have a pretty simple JavaScript arr ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
472 views
0 votes
0 answers

How to add a class to a given element?

I already have a class for an element: <div class="someclass"> <img ... ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
201 views
0 votes
0 answers

How to play audio?

I'm creating a game using HTML5 and ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
204 views
0 votes
0 answers

What is lexical scope?

What is a quick overview of lexical ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
342 views