r/javaScriptStudyGroup • u/hoangdv-i368 • May 21 '21
r/javaScriptStudyGroup • u/[deleted] • May 21 '21
Beginner JavaScript Game w/ OOP
Video (1 min): https://youtu.be/5VW3wVLxgTA
GitHub: https://github.com/LexingtonWhalen/EatTheBerriesGame
-----------------------
Here is the first actual program I made with JavaScript. I used the new (or at least I believe relatively new) JavaScript classes / inheritance and all that.
Please let me know if there are any obvious improvements possible / any other tricks with these classes that are characteristic of JavaScript.
There's sounds, berries, scoreboard, intro and end screen. Fun!
Don't really know much about game design, but a good way to learn JavaScript for a beginner!
r/javaScriptStudyGroup • u/hoangdv-i368 • May 21 '21
Image Classification API With NodeJS, TensorflowJS, And MobileNet Model
self.expressjsr/javaScriptStudyGroup • u/hoangdv-i368 • May 21 '21
How To Start Typescript + Node AWS Function With ServerlessJS?
self.javascripttipsr/javaScriptStudyGroup • u/Puzzleheaded_Lie3133 • May 28 '21
JS ES2021 - It's Almost Here
r/javaScriptStudyGroup • u/Agitated-Platypus-39 • Jun 06 '21
What am I missing?
After much trial and error, mostly just error, this is what I came up with for a simple escape room.
If someone can tell me what I am missing to get this code working, I'd be forever grateful.
const readlineSync = require("readline-sync");
const userName = readlineSync.question("What is your name?");console.log("Hi " + userName + "!");const entrance = readlineSync.question('Shall we start? [Y] or [N] ');if (entrance == "y"){console.log("Awesome! " +userName+ " Let's start!")}else if (entrance == "n"){console.log('Maybe some other time')process.exit()}'You are locked in a room. You have to find the key before you open the door. You put your hand in the hole, YOU DIE!'var choices=['hole', 'key', 'door']index = readlineSync.keyInSelect(choices, 'Which Choice?');playerPlaying = true;while (playerPlaying == true) {isplayerOptions = truewhile(isplayerOptions == true){//while the player is still active{const isPlayerOption1 = readlineSync.question("Are you sure you wanted to ... \n [1] Open the door? \n [2] Put hand in the hole? \n [3] Find key? \n",{limit:["1","2","3"]});switch(isPlayerOption1){case '2':console.log ('You have died 😵!!!...again')isplayerOptions = true;break;case '3':console.log ('You found the key under the rug!');isplayerOptions = false;break;case '1':console.log ('You do not have key 😫, try again');isplayerOptions = true;break;}}}
r/javaScriptStudyGroup • u/FatYomari • Aug 06 '21
Learning by building a project
Hi guys! Can you please let me know if there is any tutorial for JavaScript where the instructor teaches by building a big website from scratch while teaching? Like: so here we have called this object a from this class.. "let me explain what an object is..." Then goes on teaching tp build.
r/javaScriptStudyGroup • u/ProgrammingTT • Jul 03 '21
Accordion Menu Using HTML And CSS Only | Pure HTML And CSS Only
r/javaScriptStudyGroup • u/duende_goblin • Jun 27 '21
okay i guess this is basic on classes but am learning, why is this variable undefined in the bottom code but it's working in the top
so i copied the code of a mempory game am just changing what happens after you lose or you win, divs add and remove classes to light or darken the divs, after line 436 on the whole code its my added code, the problem as far as the console is this
this.colores.amarillo.classList.add("light"); is undefined
it points to a specific div, this same code is used lines above to choose color and show sequence, and it works, but when you lose or win it doesnt work, i have one other callback fucntion after you win , this one (ganoJuegoJ is to appear a big div annuncing the win, it show the div bit it doesn't trigger the callbakc function to make it disapear
the whole game is inside a class, maybe it has something to do with binding a specifric function to this, but i dont have that clear at the moment
here is the whole code:
https://github.com/moorooba/simon/blob/master/simonmineclass.html
r/javaScriptStudyGroup • u/deepak_vi • Jul 27 '21
Internationalization in Plain React.js
r/javaScriptStudyGroup • u/mihaela_workshub • Jul 27 '21
Understanding Micro Frontends
r/javaScriptStudyGroup • u/ProgrammingTT • Jul 02 '21
3D Cube Animation Using HTML and CSS Only
r/javaScriptStudyGroup • u/yangzhou1993 • Jun 24 '21
4 Ways To Write For Loops in JavaScript
r/javaScriptStudyGroup • u/mihaela_workshub • Jul 30 '21
How to Customise Material UI's Default Styling | JavaScript Works
r/javaScriptStudyGroup • u/[deleted] • Aug 09 '21
Console.log() - The Right Way ✅
r/javaScriptStudyGroup • u/hoangdv-i368 • Aug 03 '21
How to Create Authentication APIs with AWS Cognito?
self.expressjsr/javaScriptStudyGroup • u/jasnz • Jun 24 '21
check this out, a tut how to build a many to many conference app
r/javaScriptStudyGroup • u/ProgrammingTT • Jun 28 '21
Projectile Motion | Physics Animation
r/javaScriptStudyGroup • u/Frittz2 • Jul 28 '21
Need help making a random game suggestion generator!
I have a random number generator already set up. How do I assign game names to each number so a Game name gets displayed instead of the number generated?
r/javaScriptStudyGroup • u/FreakySamsung • Aug 05 '21
Timepicker based on schedule?
Right now I have a Datetime-local that has a min time, so users can't start before now...
What I plan on doing, is creating a schedule (lets say 9-5 every weekday)
Is that possible? Any places I can look into?
r/javaScriptStudyGroup • u/ProgrammingTT • Jul 12 '21
Sidebar Menu HTML CSS | Without JavaScript
r/javaScriptStudyGroup • u/ProgrammingTT • Jun 25 '21
TikTok Loading Page Using HTML-CSS
r/javaScriptStudyGroup • u/deepak_vi • Jul 19 '21
Digital Transformation Towards A Safer and More Secure Frontend Application
From choosing the language for development to getting acquainted with the micro-frontend approach, the journey is full of incremental improvements and valuable learnings.
r/javaScriptStudyGroup • u/ProgrammingTT • Jul 18 '21
Fullscreen Video Background With HTML And CSS
r/javaScriptStudyGroup • u/ct_author • Aug 07 '21