The toUpperCase() method returns the value of the string converted to uppercase. This method does not affect the value of the string itself since JavaScript strings are immutable. Example …
Basics
-
-
In JavaScript, the reload() method is used to reload a webpage. It is similar to the refresh button of the browser. This method does not return any value. Syntax location.reload() …
-
The conditional (ternary) operator is the only JavaScript operator that takes three operands: a condition followed by a question mark (?), then an expression to execute if the condition is true followed …
-
The JavaScript Screen object is used to fetch information related to the browser screen on which the current window is rendered. It provides information about the dimensions of the display …
-
The JavaScript navigator object is used for browser detection. It can be used to retrieve various bits of browser information such as appName, appVersion, userAgent, langauge and more The navigator …
-
The JavaScript history object is used to represent an array of URLs which are visited by the user. It exposes some methods and properties that let you navigate back and …
-
JavaScript has a built-in datatype that creates dynamic dates or stores current, previous, or future dates. Date objects can be created by using the new Date() method. Constructor You can use 4 …
-
The conditional operator ?:, also known as the ternary conditional operator, evaluates a Boolean expression and returns the result of one of the two expressions, depending on whether the Boolean …
-
A Stack is a type of collection that stores elements in Last In First Out style. C# includes the generic Stack<T> and non-generic Stack collection classes You can use the …
-
A Queue is a special type of collection that stores the elements in a First In First Out style, it is exactly the opposite of the Stack collection. It contains …