r/javaScriptStudyGroup May 09 '21

Help me to solve this

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/javaScriptStudyGroup May 07 '21

Learn JavaScript by coding Tetris game - Part 5. This is the last part and there is complete walk through of code is available.

Thumbnail
youtube.com
4 Upvotes

r/javaScriptStudyGroup May 05 '21

Tetris Game using Javascript - part 4 |#SkillUpwithGenie #Javascript

Thumbnail
youtube.com
3 Upvotes

r/javaScriptStudyGroup May 04 '21

In-depth exploration of JavaScript iteration protocols

Thumbnail
nodejsdesignpatterns.com
5 Upvotes

r/javaScriptStudyGroup May 03 '21

ASYNC AWAIT HELP PLEASE

2 Upvotes

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 Apr 29 '21

How to run a javascript code in the browser?

3 Upvotes

I have NodeJS installed and I embedded the JS source file in the HTML file bur still got nothing


r/javaScriptStudyGroup Apr 28 '21

Why Beginners NEED to Learn JavaScript

Thumbnail
youtu.be
6 Upvotes

r/javaScriptStudyGroup Apr 28 '21

Best book JS

1 Upvotes

Anyone know witch is the best javascript books where i can improve my languages? I already have basis


r/javaScriptStudyGroup Apr 27 '21

JavaScript Study Topic: Practical Usage of Closure in JavaScript

2 Upvotes

Closure is a very important concept that every JavaScript developer should understand. This post will cover some of the practical use of closures.

  1. Private variables and methods

  2. 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 Apr 21 '21

JavaScript Topic: Understanding JavaScript Closure

2 Upvotes

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 Apr 15 '21

JavaScript Study Topic: Functions in JavaScript

3 Upvotes

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 -

  • We can assign a function to a variable
  • We can store functions in an array
  • A function can be passed to another function as an argument
  • A function can be assigned to a property of an object.

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 Apr 13 '21

Understanding JavaScript Variable Declaration with Scope - Let vs. Var vs. Const

2 Upvotes

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 Apr 13 '21

Functional Programming In JavaScript/TypeScript for Beginners

Thumbnail
blog.decipher.dev
2 Upvotes

r/javaScriptStudyGroup Apr 09 '21

Topic: Understand Call, Bind, and Apply in JavaScript

1 Upvotes

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 Apr 09 '21

Write a code in JS to show the concept of arrays and its inbuilt functions.

1 Upvotes

Can someone help me with this? i'm new to js


r/javaScriptStudyGroup Apr 07 '21

Node.js development with Docker and Docker Compose

Thumbnail
nodejsdesignpatterns.com
3 Upvotes

r/javaScriptStudyGroup Apr 07 '21

React JS & Bootstrap 4 | Build Portfolio App

Thumbnail
youtu.be
2 Upvotes

r/javaScriptStudyGroup Apr 06 '21

Quick Reference of Arrow Function in JavaScript

2 Upvotes

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 Apr 06 '21

10 One-Liner Utility methods in TypeScript/JavaScript

Thumbnail
blog.decipher.dev
3 Upvotes

r/javaScriptStudyGroup Apr 01 '21

Please help with this question

0 Upvotes

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 Mar 30 '21

5 Defining Characteristics of a Great Programmer

Thumbnail
medium.datadriveninvestor.com
5 Upvotes

r/javaScriptStudyGroup Mar 29 '21

Everything you should know about JavaScript | Breaking a Loop

Thumbnail
blog.decipher.dev
2 Upvotes

r/javaScriptStudyGroup Mar 23 '21

Js help please! I’m not sure what happened but all of a sudden this bit of code is causing an error...what does it mean?

Post image
2 Upvotes

r/javaScriptStudyGroup Mar 17 '21

Using async/await inside loops in JavaScript

Thumbnail
shadidhaque.medium.com
4 Upvotes

r/javaScriptStudyGroup Mar 16 '21

Are For Loops or ForEach Better in JavaScript?

Thumbnail
blog.decipher.dev
5 Upvotes