Colored Markers CSS Color Markers MyLink Hello My Name IS SHivam
Posts
Showing posts from January, 2023
Regex with .test() In JavaScript
- Get link
- X
- Other Apps
REGEX is very interesting and helping RegEx It is an Acronym means Regular Expression The Work of Regex Regular Expressions (Regex) Regular Expression, or regex or regexp inshort, it is tremendously powerful in searching and manipulating text sub-strings of any String, particularly in processing text files. One line of regex can easily replace multiple lines of programming codes Regex work as to search and return true if the search regex gets found like in any string we have to search any particular words if that word of clause exist in that given string or other datatypes then it the .test() function will return True This is the Alternative Code for Regex Expression and .test() var str1 = "Hello My Name Is Shivam Dixit" ; var result = false ; var search = "Shivam" ; function regextest ( str1 , result , search ){ for ( var i = 0 ; i < str1 . length ; i ++ ){ if ( str1 [ i ] === search [ 0 ]){ for ( var j = 1 ; j < search . length ; j ++...
use promise keyword in js
- Get link
- X
- Other Apps
Promise keyword in JavaScript A promise in JavaScript is exactly what it sounds like - you use it to make a promise to do something, usually asynchronously. When the task completes, you either fulfill your promise or fail to do so. Promise is a constructor function, so you need to use the new keyword to create one. It takes a function, as its argument, with two parameters - resolve and reject . These are methods used to determine the outcome of the promise. The syntax looks like this: const myPromise = new Promise ( ( resolve , reject ) => { } ) ; Complete a Promise with resolve and reject A promise has three states: pending , fulfilled , and rejected . The promise you created in the last challenge is forever stuck in the pending state because you did not add a way to complete the promise. The resolve and reject parameters given to the promise argument are used to do this....
Export Keyword In JAVA SCRIPT (role and use)
- Get link
- X
- Other Apps
Export Keyword use and role image by DIX TECH : what is use and role of export and import keyword if you are beginner in js then you are here don't worry it is very easy to you after time export keyword here basic means of this keyword just to ensure what is it if you want to learn deep then click here Use Of export Keyword This is the code which written in an Module.js file file name : module.js //code starts export const add = (x, y) => { return x + y; } //code ends Now index.js is the file where we want to add two numbers x and y This is a new file name index.js and here randomly we want to use that add function which we have previuosly defined in module.js file to use that function we have to use import keyword is work to import the add funtion from the given file file name:index.js // code starts import add from ./module.js; // now we can use the add() function in index.js wheather it is written in module.js na...
AdipurushMovie : Download 2023
- Get link
- X
- Other Apps
DIX TECH MOVIES INFO AND DOWNLOAD LINK | | Shivam Dixit | | Upcoming Movies ADIPURUSH CELEBRATING VICTORY OF GOOD OVER EVIL Cast : Prabhat,Vatsa; Sheth, Saif ali khan, Sunny Singh, Kriti Sanon, Devdatta Nage ... Release Date : 16-06-23 Director : Om Raut Genre : Action,Adventure,Drama Writter : Manoj Muntasir Film Name Means : First Name Acc. to Web , Acc to Me "The Old Age(Period) Man" Film INSHORT This is film means is first man and based on Ramayan and this is a very upcoming Indian mythological film based on RAMAYANA this film as child child of india know what is the Greatness and Glory full The Ramayana is... and this film show the ramayan this film was first announced in 2020 August the prodused is Bhushan Kumar and the Writter Cum Director is Om Raut 7,000 years ago, Ayodhya's king Rama travels to th...