r/javaScriptStudyGroup • u/[deleted] • Aug 22 '22
r/javaScriptStudyGroup • u/Snoo20972 • Oct 19 '22
Problem with comparing two strings
Hi,
I am trying to compare two strings. Following is my code:
var assert = require('assert');
const path = require("path");
const fs = require("fs");
//const F5 = artifacts.require("F5")
//const ST5= artifacts.require("ST5")
module.exports = async function(callback) {
try {
//var ctr =0;
let Str = [];
Str = "fundame"
Str2 = []
for(i=0; i<7;i++){
ch = Str.charAt(i)
Str2[i] = ch
Str2.join("");
console.log(Str2)
if(Str2 == "fundame")
console.log("Found")
else
console.log("Not found")
}
}//try
catch(error) {
console.log(error)
}
callback()
}Following is the output:
[ 'f' ]
Not found
[ 'f', 'u' ]
Not found
[ 'f', 'u', 'n' ]
Not found
[ 'f', 'u', 'n', 'd' ]
Not found
[ 'f', 'u', 'n', 'd', 'a' ]
Not found
[ 'f', 'u', 'n', 'd', 'a', 'm' ]
Not found
[ 'f', 'u', 'n', 'd', 'a', 'm', 'e' ]
Not foundZulfi.
r/javaScriptStudyGroup • u/iliasauce • Oct 25 '22
hi I'm selling JavaScript courses for 10$
r/javaScriptStudyGroup • u/Heilsakai • Sep 10 '22
How can I make a callback function that takes value from an input and put the value inside a backgroudColor instead using a switch statement for every color. Pardon my English is not good so I made a video to make it more understandable.
r/javaScriptStudyGroup • u/Aleksa_Jaw • Dec 28 '20
any js tutors out there?
hi guys, I am desperate to find a tutor, have a project to submit in January 15th but am struggling with basic logic as basically can't get my head around it, I'm a total nude (started learning js in. September :((
if you're reading this, and it feels like you might be the one, just don't hesitate, give me shout, and teach me java script
thanks for your time to read this post
r/javaScriptStudyGroup • u/JamesBond-uk • Dec 27 '20
JavaScript the definitive guide 7th book O'Reilly
hi, just ordered ''JavaScript the definitive guide 7th edition'' book from USA and will take 2 weeks to receive it here in INDIA, so am curious to know is JavaScript the definitive guide 7th book has code snippets and diagrams in color or is it in black and white because the PDF and O'Reilly online web learning format has it in colored, if anyone has it can you share some images here
r/javaScriptStudyGroup • u/Accomplished-Serve78 • Jan 07 '21
Learn javascript through interview questions
r/javaScriptStudyGroup • u/tutorialstonight • Dec 10 '21
String formatting in JavaScript
r/javaScriptStudyGroup • u/Intrepid_Composer_84 • May 26 '22
JavaScript Age Calculator from Date of Birth
r/javaScriptStudyGroup • u/Shoufi-press • Oct 04 '21
Javascript Stream: The most up to date articles, podcasts, videos, repos about Javascript (Reactjs, Node, Angular, Vue ..etc)
r/javaScriptStudyGroup • u/ct_author • Nov 13 '21
JavaScript: Four Major Differences in var and let
r/javaScriptStudyGroup • u/jfishersolutions • Nov 27 '17
New Tutorial : Convert Strings to Integers in JavaScript and Count Characters! Feedback appreciated!
r/javaScriptStudyGroup • u/xplodivity • Jul 02 '22
How react events are different from Javascript addEventListeners | Interview question
Recently I was asked about this question in an interview and didn't have enough knowledge to explain it in depth. After some research I finally understood the difference between react events and JavaScript addeventlisteners and when to use each of them based on the use case scenario in react. Its very important to understand the concept behind each of them and how they affect your application based on performance, and how "pooling" makes react events special. This 3 minute video explains everything you need to know.
r/javaScriptStudyGroup • u/rafalsk • Jul 14 '22
Create Decentralized JavaScript applications? Right now!
gridnet.orgr/javaScriptStudyGroup • u/Mental-Class-1998 • Jun 06 '22
JavaScript help: So, I have to explain this random code tomorrow afternoon and I am honestly a bit confused and wanted to know if anyone could possibly help explain this to me.
r/javaScriptStudyGroup • u/fossterer • Apr 27 '25
Is await on a function call incorrect?
Found this image on LinkedIn.
Isn't the 1st version awaiting directly on a function call but the 2nd is explicitly awaiting the return value captured in a variable?
Why does the 1st version become sequential?
Thanks
r/javaScriptStudyGroup • u/Tiny_Ad2673 • Jul 16 '22
Internship required
I have basic knowledge of (HTML ,CSS ,Javascript ) currently learning react is there any internship related to these skills if any i would like to express my interest.
r/javaScriptStudyGroup • u/xplodivity • Jun 25 '22
Here’s a quick performance tip for your website
use preload and prefetch wherever required.
what is preload?
In simple terms, <link rel="preload"> tells the browser to download and cache a particular resource (script or a stylesheet) as soon as possible by giving that particular resource the highest priority while downloading all the resources for a page. So this means, while the browser starts to download all resources for a website, it will download the scripts or stylesheet having <link rel="preload"> first (highest priority), and then download the remaining resources (giving those resources high or low priority).
The browser doesn’t do anything with these resources after downloading it. The Scripts aren’t executed, stylesheets aren’t applied. It’s just cached, so that when they are actually required, it’s available for use immediately.
what is prefetch?
In simple terms, <link rel="prefetch"> tells the browser to download and cache a particular resource (script or a stylesheet) in the background. The downloading of these resources, happens with a low priority, so it doesn’t interfere with more important resources. Prefetch is helpful when you know you will need that resource on a subsequent page, and you want to cache it ahead of time. So that when you go to that next page, the resources for that page will already be available. Now make sure to use prefetch only when you are sure the user would navigate to a particular page from a given page.
The browser doesn’t do anything with these resources after downloading it. The Scripts aren’t executed, stylesheets aren’t applied. It’s just cached, so that when they are actually required, it’s available for use immediately.
checkout xplodivity for more javaScript content.
r/javaScriptStudyGroup • u/seocybersuccess • Jan 08 '20
Reasons Why To Choose Software Testing As A Career
r/javaScriptStudyGroup • u/ngnina • May 07 '20
I am a software enthusiast and I just launched my first eBook on web development technologies
To be honest, I am super proud of myself for completing my first ever huge side project. I have been working on this for 4+ months now.
The process has been nothing less than a roller coaster ride. I am handling everything about it myself - from writing the eBook to marketing it.
What is the name?
HTML to React: The Ultimate Guide
What to expect from the eBook
Start to finish roadmap to get you from basic HTML to advanced ReactJS
Straight to the point explanations on web development concepts with simple, concise, and fun examples
Good coding practices
Interview prep
Actionable steps for completing projects that you can brag about in your interviews
Debugging tips and tricks
Up to date study material with bite-sized lessons
My goal for this post is to just share my enthusiasm for launching my first big project and encourage more people to start taking actions on their dream projects. This is not a sales pitch. Instead, I would like to invite you guys to please visit the landing page, review it, and give me your feedback.
The link again
r/javaScriptStudyGroup • u/Velocity-Prime • Nov 28 '21
Obsidian Dark Theme for VSCode
Elegant yet practical dark theme. Try it out and tell me what you guys think.

VSCODE: https://marketplace.visualstudio.com/items?itemName=Hamza-Aziane.obsidian-dark
VSCODIUM: https://open-vsx.org/extension/Hamza-Aziane/obsidian-dark
r/javaScriptStudyGroup • u/bobadoot • Oct 03 '20
New To JS and Have a Question
I'm working on a homework assignment for a web development class and part of my assignment is this:
"When the user clicks the Place My Order button, you will validate the First Name, Last Name and Phone Number using a combination of appropriate input types and Javascript code. Names should contain only characters, unless in the case of the last name, they contain a comma followed by Jr. or Sr. The Phone number must be of the form: (###)###-#### or (###) ###-#### [difference being the space after the )]. You may use regular expressions, if you so desire, but you are not required to do so."
What would this code look like in JS? I'm currently using a text entry for the fname and lname and then a number for the phone number. I believe the phone numbers entry needs to be changed to a text as well since I can't put in any -'s or ()'s in a number box.
Any help would be much appreciated!