+ 6

Suggestion What if this discussion for codes developer?

Suggestion # I suggest (if any one has codes needs to add modths to do develop on code by public sololearn community just put the code here and the one who makes the code will ask for any modths action or function) so The one who is able to make changes to helps code needed and each person has a good function for a specific code that can develop the code placed function and do comment about the function .. Here everyone is able to get the code and the functions that he responds to

4th Jul 2017, 5:32 PM
mohammed al-sarem
mohammed al-sarem - avatar
8 Answers
+ 6
I will start https://code.sololearn.com/W37ySHEZ5mKa/?ref=app. I want to call width and height and make changes by array
5th Jul 2017, 1:55 PM
mohammed al-sarem
mohammed al-sarem - avatar
+ 4
Hi Mohammed, I'm sorry, I don't understand what you are asking here. Maybe rephrase the statement, simplify it so people can understand what you mean.
5th Jul 2017, 2:48 AM
Ipang
+ 4
@lpang Suggestion # I suggest (if any one has codes needs to add modths to do develop on code by public sololearn community just put the code here and the one who makes the code will ask for any modths action or function) so The one who is able to make changes to helps code needed and each person has a good function for a specific code that can develop the code placed function and do comment about the function .. Here everyone is able to get the code and the functions that he responds to
5th Jul 2017, 1:44 PM
mohammed al-sarem
mohammed al-sarem - avatar
+ 4
Let's review your code: var d = document.getElementById("convan1") // d is undefined, there's no element with id #convan1 in your html [used in ch()] var f=3 var t=new Array( "rgba'(10, 200, 3, 1)'", "rgba'(10, 20, 3, 1)'" ) /* rgba is for color composition (plus transparency), you can't use it to change element size, changing color may work. [used in ch()] */ var g="" // g should have value, // [used in ch() & chch()] var e="" // e should have value, // [used in chch()] function ch(){ w="#"+t[g] // g is empty,w=t[g] is undetermined con=d.getContext("2d")= con=style.width=w /* since d is undefined, this probably fail, I think w doesn't contain a valid value for size (width) */ } function chch(){ // as defined above: // e="", g="" (both are string) // can't compare string & number if(e==2){ g++ // g="" (string), g++ expects number } if(g==68) e=300 if(e==50){ g-- if(g==190) e=30() } ch() } function start(){ // setContext() is undefined, tthis raises error flash=setContext("chch()",3) } start() That's how I see it Mohammed, I'm still learning JavaScript, I hope other more experienced users can help more, I can only go that far. Hope that helps
5th Jul 2017, 3:16 PM
Ipang
+ 4
oh that's good it helps
5th Jul 2017, 3:26 PM
mohammed al-sarem
mohammed al-sarem - avatar
+ 3
that's really good thanks
5th Jul 2017, 6:10 PM
mohammed al-sarem
mohammed al-sarem - avatar
+ 1
hiii
5th Jul 2017, 7:55 AM
Karan Thakor
Karan Thakor - avatar
0
what
11th Jul 2017, 7:20 AM
Karan Thakor
Karan Thakor - avatar