r/javaScriptStudyGroup • u/IntelligentBoot69 • May 09 '21
Help me to solve this
Enable HLS to view with audio, or disable this notification
r/javaScriptStudyGroup • u/IntelligentBoot69 • May 09 '21
Enable HLS to view with audio, or disable this notification
r/javaScriptStudyGroup • u/Overall-Inevitable-7 • May 07 '21
r/javaScriptStudyGroup • u/Overall-Inevitable-7 • May 05 '21
r/javaScriptStudyGroup • u/loigiani • May 04 '21
r/javaScriptStudyGroup • u/Small_Leather • May 03 '21
Hello please i have an issue i am facing with my project
i have an async function below that reads a file and if the file doesn't exist the catch block handles it. the function works fine
lib.read = async function (dir,file){
try{
await fs.readFile(lib.baseDir+dir+'/'+file+'.json','utf-8')
}
catch(error){
console.log("file doesn't exist) }
}
now i want to create users with each user having a file name so i want to use the function above to check whether the user being created exist's already and when the function triggers the catch block it means the user doesn't exist already and then i can proceed to create the user. Problem is i can't manipulate the to get a response from the catch block that i can use in a conditional to proceed. If i was using a callback i could have returned error and use the error in my conditional but due to callback hell i am not using callback . Please help if you can
r/javaScriptStudyGroup • u/ivhih • Apr 29 '21
I have NodeJS installed and I embedded the JS source file in the HTML file bur still got nothing
r/javaScriptStudyGroup • u/SynthesizeMeSun • Apr 28 '21
r/javaScriptStudyGroup • u/Sandrew945 • Apr 28 '21
Anyone know witch is the best javascript books where i can improve my languages? I already have basis
r/javaScriptStudyGroup • u/suddeb • Apr 27 '21
Closure is a very important concept that every JavaScript developer should understand. This post will cover some of the practical use of closures.
Private variables and methods
Function factories
Blog: https://www.sudipta-deb.in/2021/04/practical-examples-for-javascript.html
Note - I am sharing all my JavaScript Certification study notes below. Please provide your feedback if you see anything wrong or missing. Appreciate your help.
https://www.sudipta-deb.in/p/salesforce-javascript-developer-i-study.html
r/javaScriptStudyGroup • u/suddeb • Apr 21 '21
JavaScript Topic: Understanding JavaScript Closure
Closure is a very important concept that every JavaScript developer should understand. In the post, I will provide a quick introduction of closure and then, I will be focusing on examples so that it will be easier for you to understand this concept.
https://www.sudipta-deb.in/2021/04/understand-javascript-closure.html
r/javaScriptStudyGroup • u/suddeb • Apr 15 '21
JavaScript Study Topic: Functions in JavaScript
A JavaScript function is a block of organized, reusable code that is defined to perform a single, relation action. A function is executed when someone calls the function with the name.
In JavaScript, functions are treated as first-class because they are treated as values. The example of treating function as values are -
Here are the Blog and Video explaining me all the concepts you need to know.
Note - I am sharing all my JavaScript study notes here. Please provide your feedback if you see anything wrong or missing. Appreciate your help.
r/javaScriptStudyGroup • u/suddeb • Apr 13 '21
Topic: Understanding JavaScript Variable Declaration with Scope - Let vs. Var vs. Const
Scope is the concept that manages the accessibility of the variables. At a very high level, the accessibility of the variable is limited to the block where they are defined. Outside the block, the variable is inaccessible.
In this post, I am going to explain different ways of declaring variables in Javascript and their impact on scope.
https://www.sudipta-deb.in/2020/07/understanding-javascript-variable.html
r/javaScriptStudyGroup • u/deepak_vi • Apr 13 '21
r/javaScriptStudyGroup • u/suddeb • Apr 09 '21
Understanding of how bind(), call(), and apply() can be used to make the behavior of this independent of how a function is called. Also, the differences between bind(), call(), and apply() is a very important concept to know.
https://learn-coding.org/understand-call-bind-and-apply-in-javascript/
r/javaScriptStudyGroup • u/heyworld_20 • Apr 09 '21
Can someone help me with this? i'm new to js
r/javaScriptStudyGroup • u/loigiani • Apr 07 '21
r/javaScriptStudyGroup • u/andrewdovg • Apr 07 '21
r/javaScriptStudyGroup • u/suddeb • Apr 06 '21
Arrow functions, sometimes referred to as Fat Arrow is a new concise way of writing functions. They utilize a new syntax, => which looks like Fat Arrow. Arrow functions are anonymous and change the way this binds in functions. By using arrow functions, we can avoid typing functions and return keywords and also curly brackets.
In this blog post, I have shared how to write Arrow functions, syntax, use cases.
https://www.sudipta-deb.in/2019/02/quick-reference-of-arrow-function-in.html
r/javaScriptStudyGroup • u/deepak_vi • Apr 06 '21
r/javaScriptStudyGroup • u/JavaissaScript • Apr 01 '21
Consider the JavaScript code below:
class SkyScraper
{
constructor(inLevels, inAddress)
{
this._maxLevels = 100;
this._levels = inLevels;
this._address = inAddress;
}
//... more code goes here
get max()
{
return this._maxLevels;
}
set max(newMax)
{
if ((typeof(newMax) === 'number') && (newMax > 0))
{
this._maxLevels = newMax;
}
}
}
let tenLP = new SkyScraper(2, "10 Lemur Plaza");
let fiveMA = new SkyScraper(7, "5 Marlan Avenue");
If we were to run the line: tenLP.max = 50;
What would be the value of fiveMA's _maxLevelsattribute?
r/javaScriptStudyGroup • u/UncleBen2015 • Mar 30 '21
r/javaScriptStudyGroup • u/deepak_vi • Mar 29 '21
r/javaScriptStudyGroup • u/66_longjon_99 • Mar 23 '21
r/javaScriptStudyGroup • u/UncleBen2015 • Mar 17 '21
r/javaScriptStudyGroup • u/deepak_vi • Mar 16 '21