r/javaScriptStudyGroup • u/robson_muniz • Jul 21 '23
π Build a π To-Do List App with HTML, CSS, and JavaScript! π¨βπ»
r/javaScriptStudyGroup • u/robson_muniz • Jul 21 '23
r/javaScriptStudyGroup • u/SalaryNecessary2818 • May 31 '23
r/javaScriptStudyGroup • u/miracleranger • May 27 '23
r/javaScriptStudyGroup • u/xplodivity • May 14 '23
r/javaScriptStudyGroup • u/Arri3cubed • Apr 28 '23
I am almost at the end of a 16 week online course that exclusively uses Zybooks and I feel like I have been teaching myself. I was doing okay (if you call having a mental breakdown almost every assignment okay) when the lessons were individual. I'm now near the end and really struggling with this chapter that only has vague information about form widgets. I just barely found this group and would like some feedback. Why is my form not stopping the post to the action link? I tried using min and max in the label, and with a Javascript function (separately). Neither work. I turned it in but my teachers comments aren't enough of an insight. TIA
Here is the instructions:
Fred's French Fry Shack specializes in serving fresh, delicious fries and needs a way to collect feedback from its customers. Create a web page named FriesFeedback.html with a form for user input. Use at least three different widget types to collect the following:
Customer name (ensure that this is between 5 and 30 characters)
Date of visit
Size of fries ordered (Small, medium, large)
Whether or not the customer plans to return
Comments
A button should submit the form data to he form-viewer page at wp.zybooks.com, as you did in the zyBooks activities.
Here is my code:
<html>
<head>
<title>Module 09 - Part A</title>
<style> body { background-color: azure; } main { background-color: white; margin-left: 200px; margin-right: 200px; padding: 25px; border: 1px solid black; } h1 { color: navy; } </style>
</head>
<body>
<main>
<h1> Thank you for choosing Fred's French Fry Shack</h1>
<p><i>We would like to hear more about your experience!</i></p>
<br>
<form id="fryFeedback" action="[https://wp.zybooks.com/form-viewer.php](https://wp.zybooks.com/form-viewer.php)" target="_blank" method="POST">
<p>
<label for="full" min="5" max="30">Full Name:</label>
<input type="text" name="full" id="full" placeholder="Your name...">
</p>
<p>
<label for="date">Date visited:</label>
<input type="date" name="date" id="date" required>
</p>
<p><b>What size of frys did you order?</b></p>
<p>
<label for="fryS"> Small</label>
<input type="checkbox" name="fryS" id="fryS">
<label for="fryM"> Medium</label>
<input type="checkbox" name="fryM" id="fryM">
<label for="fryL"> Large</label>
<input type="checkbox" name="fryL" id="fryL">
</p>
<p><b>Do you plan to return?</b></p>
<p>
<label for="yes">Yes</label>
<input type="checkbox" name="yes" id="yes">
<label for="no">No</label>
<input type="checkbox" name="no" id="yes">
</p>
<p>
<label for="comments"><b>Do you have any thoughts about your experience you would like to share?</b></label>
</p>
<p>
<textarea name="comments" id="comments" rows="3" cols="20"> I liked...</textarea>
</p>
<p>
<input type="submit" value="Finish" onclick="checkName()">
</p>
</form>
</main>
<script> function checkName(){ var name = document.getElementById("full").value; var nameLength = name.length > 5 && name.length <= 30; // borrowed this function from Zybooks function checkForm(event) { if (!nameLength) { event.preventDefault(); } } </script>
</body>
</html>
r/javaScriptStudyGroup • u/xplodivity • Mar 30 '23
r/javaScriptStudyGroup • u/ProgrammingTT • Mar 30 '23
r/javaScriptStudyGroup • u/thetech_learner • Mar 28 '23
r/javaScriptStudyGroup • u/ProgrammingTT • Mar 26 '23
r/javaScriptStudyGroup • u/[deleted] • Feb 19 '23
r/javaScriptStudyGroup • u/ProgrammingTT • Jan 14 '23
r/javaScriptStudyGroup • u/Firm_Caregiver1762 • Dec 18 '22
r/javaScriptStudyGroup • u/ProgrammingTT • Dec 09 '22
r/javaScriptStudyGroup • u/xplodivity • Nov 22 '22
This series will include 97 parts out of which 8 have been released. This series will contain a lot of unique questions with in-depth explanations that will strengthen your JavaScript knowledge and help you become a better JavaScript developer. (ALL FOR FREE)
link - https://www.youtube.com/playlist?list=PLOfzxGau1V5Ud9d3preQZnn9lYhUsRgYn
r/javaScriptStudyGroup • u/CSharpEnthusiast • Nov 17 '22
Anyone with other programming knowledge wants to join the discord group?? Looking for a small team to learn together.
r/javaScriptStudyGroup • u/No-Upstairs-2813 • Nov 17 '22
JavaScript is an object-based language. Except for these six types β string, number, boolean, bigint, symbol, undefined, and null β everything in JavaScript is an object. Yes, even the constructors, functions, and arrays are objects.
So it's important to know different ways of creating objects. Check out the post to learn more.
r/javaScriptStudyGroup • u/xplodivity • Nov 06 '22
I built a dynamic progress bar using JavaScript which changes based on the value and max value the user inputs. If any of you are curious about how to build this, here's a short 14 min tutorial
Link: https://www.youtube.com/watch?v=Ll5f0jGIqa4
r/javaScriptStudyGroup • u/xplodivity • Nov 02 '22
This series will include 97 parts out of which 6 have been released. This series will contain a lot of unique questions with in-depth explanations that will strengthen your JavaScript knowledge and help you become a better JavaScript developer. (ALL FOR FREE)
link - https://www.youtube.com/playlist?list=PLOfzxGau1V5Ud9d3preQZnn9lYhUsRgYn
r/javaScriptStudyGroup • u/xplodivity • Oct 31 '22
As a frontend developer, one of the most common requirements in most projects is to build a search filter. But simply building a search filter isn't enough, You need to consider different design aspects and make sure to build a highly optimized search filter that improves the application performance as well as saves up the company some money through reduced network calls. One of the most popular ways to do this is by integrating the search filter with debounce and pagination. And these concepts even polish a lot of your JavaScript skills. If you are interested to learn how to implement something like that, here's a full tutorial/guide I have made on the same.
r/javaScriptStudyGroup • u/xplodivity • Oct 26 '22
What you will learn -
What is useReducer and reducer?
how useReducer works + example
visualising difference between useState and useReducer
how to access state in reducer function
what is dispatch, its use and how to use it
writing logic for reducer function
imp Note for dispatch
ways to specify initial state in useReducer
state initialization comparison with redux
Lazy initialization
bailing out of a dispatch
performance benefit of useReducer
r/javaScriptStudyGroup • u/xplodivity • Oct 14 '22
As a frontend developer, its important for you to know about the website "bigfrontend dev"
This website is the leetcode for frontend. There are a bunch of problem solving JavaScript related questions that are tricky and very useful to learn and understand whether its for your project or just conceptually.
I will be making a series on YouTube to solve and explain in depth all the 97 questions present in the 'JavaScript' section of the website. This will significantly make you better in JavaScript and also serve you well during any JavaScript interview.
The first video of the series is out. Check it out
link - https://www.youtube.com/watch?v=0Tfuf34zKQQ
r/javaScriptStudyGroup • u/xplodivity • Oct 13 '22
Async and Defer are two important concepts in JavaScript as it provides information about the fastest way to load JavaScript. Understanding async ,defer and how they are different from normal script tags is also asked during interviews. This 6 minute video explains everything you need to know about async, defer, why or when to use them and their differences.
Link: https://www.youtube.com/watch?v=RaPMjzYFF9Y
r/javaScriptStudyGroup • u/stormosgmailcom • Oct 04 '22
r/javaScriptStudyGroup • u/Snoo20972 • Sep 24 '22
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 • u/xplodivity • Sep 11 '22
As a frontend developer, one of the most common requirements in most projects is to build a search filter. But simply building a search filter isn't enough, You need to consider different design aspects and make sure to build a highly optimized search filter that improves the application performance as well as saves up the company some money through reduced network calls. One of the most popular ways to do this is by integrating the search filter with debounce and pagination. And these concepts even polish a lot of your JavaScript skills. If you are interested to learn how to implement something like that, here's a full tutorial/guide I have made on the same.