jemin.hashnode.devDay 9 : Function Declaration ,Expression ,Constructor , Hoisting , Self-invoking FunctionFunction JavaScript functions are defined with the function keyword. You can use a function declaration or a function expression. Function Declaration:- function functionName(parameters) { // code to be executed } Declared functions are not exec...Mar 19, 2024·2 min read
jemin.hashnode.devDay 8 : What is an Array? And how many types of an Array Methods in javascript?Array An array is a special variable, which can hold more than one value. An array can hold many values under a single name, and you can access the values by referring to an index number. Syntax:- const array_name \= [item1, item2, ...]; Example:...Mar 17, 2024·7 min read
jemin.hashnode.devDay 7 : Converting Variable to Numbers And Date Set Methods ?Converting Variable to Numbers There are 3 JavaScript methods that can be used to convert a variable to a number: Method DescriptionNumber() Returns a number converted from argument.parseFloat() Parse its argument and returns a floating point number...Mar 10, 2024·4 min read
jemin.hashnode.devDay 6 : what is an Math Methods And Number Methods in javascript ?The syntax for Math any methods is : Math.method(number) Math.round():- Math.round(x) returns the nearest integer. Example:- Math.round(4.6); // 5 Math.round(4.3); // 4 Math.ceil():- Math.ceil(x) returns the value of x rounded up to its nearest...Feb 29, 2024·3 min read
jemin.hashnode.devDay 5 : how many String Methods in javascript with example ?● String length ● String slice() ● String substring() ● String substr() ● String replace() ● String replaceAll() ● String toUpperCase() ● String toLowerCase() ● String concat() String Length:- ● String trim() ● String trimStart() ● String tr...Feb 28, 2024·5 min read