Articles on Trending Technologies

Technical articles with clear explanations and examples

What is Java Development Kit (JDK)?

Manikanth Mani
Manikanth Mani
Updated on 13-Jun-2020 924 Views

JDK, contains development tools and JRE.

Read More

Why would a jQuery variable start with a dollar sign?

Johar Ali
Johar Ali
Updated on 13-Jun-2020 406 Views

When you will begin working about jQuery, you will get to know about the usage of the $ sign. A $ sign is used to define jQuery.jQuery variables begin with $ to distinguish them from a standard JavaScript object. Also, it is a convention. jQuery selectors start with the dollar sign and parentheses() − $.Let's take an Example −// jQuery object var $phone = $("#myphone"); // dom object var phone_el = $("#myphone").get(1);

Read More

How to set JAVA_HOME for Java in Windows?

Alankritha Ammu
Alankritha Ammu
Updated on 13-Jun-2020 1K+ Views

Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

Read More

How to Set Permanent Path of JDK in Windows?

Akshaya Akki
Akshaya Akki
Updated on 13-Jun-2020 1K+ Views

Following are the required steps −Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Read More

What is the difference between jQuery(selector) and $(selector)?

David Meador
David Meador
Updated on 13-Jun-2020 443 Views

The $ variable is for jQuery.  If you’re using more than one JavaScript library or multiple versions of jQuery, then you should use jQuery(selector) instead of $(selector) to avoid name conflicts.ExampleTo understand the noConflict() concept, let us see an example of using the jQuery (selector):Live Demo $.noConflict(); jQuery(document).ready(function(){     jQuery("button").click(function(){         jQuery("h3").text("jQuery works perfectly");     }); }); Testing jQuery Click below: Click me The $ sign is used for jQuery, but what if other frameworks also use the same $ sign; this may create issues and ...

Read More

How to use wildcards like $ ('#name*'), $ ('#name%') in jQuery selectors?

Amit D
Amit D
Updated on 13-Jun-2020 5K+ Views

For getting the id that begins or ends with a particular string in jQuery selectors, you shouldn’t use the wildcards $('#name*'), $('#name%'). Instead use the characters ^and $. The ^ is used is used to get all elements starting with a particular string. The $ is used is used to get all elements ending with a particular string.ExampleYou can try to run the following code to learn how to get id beginning and endingwith a particular string.Live Demo $(document).ready(function(){   $("[id$=new1]").css("background-color", "yellow");   $("[id^=myid]").css("background-color", "green"); }); Java HTML Ruby C++

Read More

What happens in Java Program at compile time?

Alankritha Ammu
Alankritha Ammu
Updated on 13-Jun-2020 499 Views

During compile time, java compiler (javac) takes the source file .java file and convert it to bytecode .class file.

Read More

What is the difference between $(window).load() and $(document).ready() functions in jQuery?

David Meador
David Meador
Updated on 13-Jun-2020 4K+ Views

Both the methods are used in jQuery. Let’s see what purpose they fulfill.$(window).load()The code which gets included inside $( window ).on( "load", function() { ... }) runs only once the entire page is ready (not only DOM).Note: The load() method deprecated in jQuery version 1.8. It was completely removed in version 3.0. To see its working, add jQuery version for CDN before 3.0.$(document).ready()The ready() method is used to make a function available after the document is loaded. Whatever code you write inside the $( document ).ready() method will run once the page DOM is ready to execute JavaScript code.You can ...

Read More

Why is 'class' a reserved word in JavaScript?

Rahul Sharma
Rahul Sharma
Updated on 13-Jun-2020 692 Views

The following are the future reserved words, which include ‘class’. These words are used as keywords in proposed extensions and are therefore reserved to allow for the possibility of future adoption of those extensions.class enum extends super const export ImportThe above is defined in the ECMAScript specification.In ECMAScript 6 Language Specification it is used. The class declaration creates a class −class name [extends] {    // body of class }

Read More

Why JavaScript 'var null' throw an error but 'var undefined' doesn't?

Johar Ali
Johar Ali
Updated on 13-Jun-2020 226 Views

The web browser throws an error for “var null” because it is a reserved identifier.You cannot use the following literals as identifiers in ECMAScript −null frue falseundefined A property with no definition. It is not known and not a reserved identifier. Its type is undefined.nullIt is known and a reserved identifier. But “null” isn’t the same as “false”. When you will declare a variable and set it to null, then null will get printed.

Read More
Showing 45931–45940 of 61,248 articles
Advertisements