What language (s) are you currently learning, and why?
comment down
comment down
e-commerce_cart.zip
42.5 KB
Vanilla JS E-commerce cart functionality made by me :)
don't consider the design :/
don't consider the design :/
Unless you're physically incapable of actually coding, I think you're not too old to learn coding 💯
Even if you're 60 or 70 years old.
Coding is simply thinking, intelligence and memory.
The only disadvantage for you could be time ⏰
Coding is a skill you can pickup really quick if you can put in a decent amount of time everyday. 🚀
You can decide if you want to invest some of your time to Netflix or you want to invest it to improving your life.
The best way to pick up coding really fast is, living as a programmer.
Instead of going through your Facebook feed, you can try out apps like SoloLearn.
Instead of listening to music 🎧, replace it with a podcast 🎙that has to do with programming 👨💻
This will not only help you learn a lot faster, but also increase you interest in it ✨
Even if you're 60 or 70 years old.
Coding is simply thinking, intelligence and memory.
The only disadvantage for you could be time ⏰
Coding is a skill you can pickup really quick if you can put in a decent amount of time everyday. 🚀
You can decide if you want to invest some of your time to Netflix or you want to invest it to improving your life.
The best way to pick up coding really fast is, living as a programmer.
Instead of going through your Facebook feed, you can try out apps like SoloLearn.
Instead of listening to music 🎧, replace it with a podcast 🎙that has to do with programming 👨💻
This will not only help you learn a lot faster, but also increase you interest in it ✨
6.Suppose that all edge weights in a graph are integers in the range from 1 to |V|.
How fast can you make Prim’s algorithm run? What if the edge weights are integers in the range from 1 to W for some constant W?
7. Given MST of graph G. Let’s assume a new edge (that may or may not belong to MST) was added to the graph. What is running time complexity of figuring out does this new edge belong to MST or not? Consider all possible cases. You can use any algorithm. Is there a way to optimize your time complexity?
the one who answers this, will get [no]thing
How fast can you make Prim’s algorithm run? What if the edge weights are integers in the range from 1 to W for some constant W?
7. Given MST of graph G. Let’s assume a new edge (that may or may not belong to MST) was added to the graph. What is running time complexity of figuring out does this new edge belong to MST or not? Consider all possible cases. You can use any algorithm. Is there a way to optimize your time complexity?
the one who answers this, will get [no]thing
while developing, do u open different desktops or all softwares in one desktop
Anonymous Poll
34%
different desktops
65%
all softwares in one desktop
1%
other, leave in comments
const handleSubmit = (e) => {
e.preventDefault()
setEmailError('')
setPasswordError('')
setUsernameError('')
if(username.length === 0){
setUsernameError('This field is required')
}
if(password.length === 0){
setPasswordError('This field is required')
}
if(email.length === 0){
setEmailError('This field is required')
}
if(email.length !== 0 && password.length !== 0 && username.length !== 0){
dispatch(register(username, email, password))
}
}
refactor this code to make it short and remember to follow the best practices, the concept is this function is called whenever a user submits a form, if any of the fields is left is left blank we set a error for that "particular" field and if at the last all the inputs have some value in them, the request is dispatched to the server
good luck 👍
e.preventDefault()
setEmailError('')
setPasswordError('')
setUsernameError('')
if(username.length === 0){
setUsernameError('This field is required')
}
if(password.length === 0){
setPasswordError('This field is required')
}
if(email.length === 0){
setEmailError('This field is required')
}
if(email.length !== 0 && password.length !== 0 && username.length !== 0){
dispatch(register(username, email, password))
}
}
refactor this code to make it short and remember to follow the best practices, the concept is this function is called whenever a user submits a form, if any of the fields is left is left blank we set a error for that "particular" field and if at the last all the inputs have some value in them, the request is dispatched to the server
good luck 👍