15th Aug 2021, 1:02 PM
|HC🇮🇳|
|HC🇮🇳| - avatar
4 Respostas
+ 2
Take a look at this link, https://stackoverflow.com/questions/39033070/css-color-vs-background-color-vs-background Check 5th answer , background with linear gradient can't be overrode by the background color property. Also i don't understand why are you declaring variable v in so many places. When you do var v="" in if(v==4) block, it makes this variable available inside the whole function body (only that function in which the var type variable resides) . It is a new variable not the v=0 one. When you do => let v=4 , you are making a new variable whose scope will be limited to only that "else" block . If you have any questions , feel free to ask . I have been learning js for quite a bit of time and still struggling with it . It's not that easy at all . If you can't understand what i mean then you might want to learn about hoisting and how let and var defer from each other .
15th Aug 2021, 2:10 PM
Abhay
Abhay - avatar
+ 4
If else not working properly
15th Aug 2021, 1:09 PM
|HC🇮🇳|
|HC🇮🇳| - avatar
+ 3
Thanks a lot I get it
15th Aug 2021, 2:13 PM
|HC🇮🇳|
|HC🇮🇳| - avatar
+ 1
What should we help you with ?
15th Aug 2021, 1:09 PM
Abhay
Abhay - avatar