injamulcse15.hashnode.devTalking about JavaScript functionWhat is Function in JavaScript? In JavaScript, functions are defined with the 'function' keyword. There is an another way to define a function, called 'Arrow Function'. Declaration a Function Syntax function firstFunction () { // Code here ......Sep 14, 2021·2 min read
injamulcse15.hashnode.devWhat is DOM manipulation in JavaScript?What is DOM Manipulation? DOM stands for Document Object Model. Structured representation of HTML documents allows JavaScript to access HTML elements and styles to manipulate them! Change text, HTML attributes, and even CSS styles. Access HTML elem...Aug 16, 2021·2 min read
injamulcse15.hashnode.devHow to generate a random integer number between two numbers with javascript.function randomNumber(min, max) { return Math.floor(Math.random() * (max - min) + min); } /* var result = randomNumber(0, 50); console.log("A random integer number between two numbers is: " + result); Output : A random integer number between two n...Aug 15, 2021·1 min read
injamulcse15.hashnode.devJavaScript String Methods at a glance for beginnerscharAt() : charAt(int) method returns the character in the specified string for a given index number. The index of the string starts at zero (0). For Example: var stringOne = 'Hello JavaScript'; var output = stringOne.charAt(6); console.log("The char...Aug 14, 2021·4 min read
injamulcse15.hashnode.devWhat is the difference between double equal (==) and triple equal (===) in javascript?I will try to explain this to you very simply and briefly, I hope you will understand better. We know that double equal (==) and triple equal (===) both are called comparison operators. Double equal (==) is used for comparing two variables, but it ch...Aug 11, 2021·2 min read