r/javaScriptStudyGroup • • Oct 22 '22

leetcode for frontend series | Part 6 of 97

4 Upvotes

A very interesting and tricky question on functions and objects in JavaScript explained in depth. Solving these type of questions will tremendously strengthen your knowledge in JavaScript.

link - https://www.youtube.com/watch?v=JfAHECafhnI


r/javaScriptStudyGroup • • Sep 24 '22

Why null value test not working?

2 Upvotes

Hi,

I have a variable:

"argStrWithComma" and is equal to "null". Its length is zero but the control still enters the block,

else if(argStrWithComma != null) { //if commacount == 0
if(argStrWithComma == null){
return
}

The complete code is given below:

const path = require("path");
const fs = require("fs");
module.exports = async function(callback) 

{
try {
let argStrWithComma= null
let transferFuncName = "mint"
let funcStr = "function mint() public {"
let argStrN = null
argStrWithComma = extract_the_function_argument_with_comma(funcStr, transferFuncName)
var commacount = (argStrWithComma.match(/,/g) || []).length;
if(commacount != 0){
}
else if(argStrWithComma != null) { //if commacount == 0
if(argStrWithComma == null){
return
}
console.log("3###?? argStrN = " + argStrN + "argStrWithComma= " + argStrWithComma + "Length= "+ argStrWithComma.length)
console.log("Why Entering Here ???????????? !!argStrWithComma=" + argStrWithComma)
} 

} 

catch(error){
console.log(error)
}
callback();
function extract_the_function_argument_with_comma(funcStr, transferFuncName){
console.log("!!Inside extract the function argument Function Name String="+funcStr+"tfunName="+transferFuncName); 

let words = funcStr.split(transferFuncName); //step 1, split the function string using function name
let argStr = null
let strbwParen = null
console.log("words length=" + words.length)
for(let i=0; i<2; ++i){//This will not be greater than 2 

word = words[i]
if(word.includes('(') && word.includes(')')){//Now find the string containing parenthesis, which would contain arguments
console.log("word ="+ word)
strbwParen = word.substring( word.indexOf( '(' ) + 1, word.indexOf( ')' ) );
console.log ("strbwParenthesis="+strbwParen + "Length=" + strbwParen.length)
//console.log("strbwp[0]="+strbwParen[0][0]+" strbwP[2]="+strbwParen[2][0])
break
}
}
return strbwParen
}
}

Somebody, please guide me.

Zulfi.


r/javaScriptStudyGroup • • Sep 14 '19

🧰 Developer’s toolbox: 🔌 Adapter Design Pattern

Thumbnail
medium.com
1 Upvotes

r/javaScriptStudyGroup • • Jul 26 '18

Yin Yang with a twist: four circles and 20 lines of pure JavaScript

Thumbnail
slicker.me
3 Upvotes

r/javaScriptStudyGroup • • Jan 24 '20

Advanced Node.Js: A Hands on Guide to Event Loop, Child Process and Worker Threads in Node.Js

Thumbnail
blog.soshace.com
1 Upvotes

r/javaScriptStudyGroup • • Nov 20 '19

Simple and Easy way to Build a RESTful API using Node.js - Source Code on GitHub

Thumbnail
opencodez.com
7 Upvotes

r/javaScriptStudyGroup • • Nov 16 '19

SEO Tutorial for Developers

5 Upvotes

Hello everyone! For quite some time now I was looking for a simple SEO tutorial made specifically for DEVELOPERS, a guide that isn't made of 100% marketing jargon like "keyword research", "content optimization", and "link building". Having not been satisfied with results, I've spent A LOT of time researching everything that there is to SEO. I've put all of that research into this one video that I would like to share with you.

Link of the video - https://youtu.be/JSm4aQl4w_U.

All feedback and/or critique is highly appreciated!


r/javaScriptStudyGroup • • Jul 10 '19

javascript-average-array-and-function-answer

2 Upvotes

Here is a step by step tutorial which beautifully explain how to find average of numbers using javascript and various implementation.

FIND JAVASCRIPT AVERAGE ARRAY AND FUNCTION


r/javaScriptStudyGroup • • Dec 28 '22

Which of the following takes up most of your time in your programming job?

1 Upvotes

As the title

29 votes, Jan 04 '23
8 1. Study / Thinking
5 2. Search / Copy / Paste from Web
7 3. Coding yourself
5 4. Fix bugs
4 5. Attend meaningless meetings / Others

r/javaScriptStudyGroup • • Dec 21 '22

Neumorphic Working Analog Clock Using CSS Only |

Thumbnail
youtu.be
3 Upvotes

r/javaScriptStudyGroup • • Jan 07 '23

CSS Mouseout Transition Effect On Hover |

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jan 28 '23

A quiz with multiple answers WITHOUT WRONG

1 Upvotes

Hi everyone, I have to add a simple quiz to my website.

I never used or studied how to do quizes before.

It has to be like a childish test... you know 'Who are you from Harry Potter/Winx/Naruto/ Who were you in your previous life etc' WITHOUT WRONG ANSWERS.

I'm searching in Google for a few hours, but I found many quizes exactly with one right and few wrong answers. I search like 'multiple'!

Maybe you have an example of quiz like I need? In browser saves or on a codepen?

I need it but I have to study the working example at first.

In result it has to be 3 answers, and then o show a content, depending of different answers. I would try on a simple picture to each answer at first


r/javaScriptStudyGroup • • Dec 27 '22

Nice to add in portfolio - JavaScript Project

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jan 14 '23

Creating a Confetti Explosion Effect with JavaScript |

Thumbnail
youtu.be
2 Upvotes

r/javaScriptStudyGroup • • Dec 18 '22

Why is the right answer true. I thought negating true or false makes it false since it’s true without the negation? I obviously don’t know lol but the right answer is true. Can anyone explain the process of why.

Post image
2 Upvotes

r/javaScriptStudyGroup • • Jan 11 '23

JavaScript newbie

6 Upvotes

Hi there, I am currently a student in a full stack web development Bootcamp. In my second month and it’s our third week of javascript. I am very lost, I am a very hands on learner so practice makes perfect but i am having a hard time even beginning. I learn better when information I don’t understand is compared to real life analogies. Not necessarily a web page, but more every day Scenarios. If anybody has references, possibly some videos teaching this way and can share it would be much appreciated! TIA


r/javaScriptStudyGroup • • Jan 21 '23

Creating Dynamic Navigation Menu With Tooltip On Hover |

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Oct 01 '25

A tool to improve your mobile users' experience with form inputs

Thumbnail
weatherheadonline.com
2 Upvotes

r/javaScriptStudyGroup • • Jan 31 '26

Resume Help

Thumbnail
reddit.com
2 Upvotes