MODULE3: ARRAYS Distructuring into variables part2

Qaybta Xirfada Sayniska iyo iwm

Moderators: Moderators, Junior Moderators

User avatar
afisoone
SomaliNet Super
SomaliNet Super
Posts: 5509
Joined: Wed Jul 22, 2009 9:46 pm
Location: We all want to become president even though Amisom controls Mogadishu

MODULE3: ARRAYS Distructuring into variables part2

Post by afisoone »

welcome back again. Wali waxaan ku jirnay array. You can do many things with an array.

Today, how to unpack an array and copy them to variables.. That is what we cover today.

Ok.. let create array...
let madexweynayaal=["HassanSheikh","AhmedSilaanyo", "CabdiwaliMaxamed"];
this array we will copy to new three variables..........
let [madexweynahaSomalia,madexweynahaSomaliland, madexweynahaPuntland]=madexweynayaal;
now you can console..
console.log(madexweynahaSomalia,madexweynahaSomaliland,madexweynahaPuntland);
That is how you can destructuring array into variable..

her is full.
<script type="text/javascript">

let madexweynayaal=["HassanSheikh","AhmedSilaanyo", "CabdiwaliMaxamed"];
let [madexweynahaSomalia,madexweynahaSomaliland, madexweynahaPuntland]=madexweynayaal;
console.log(madexweynahaSomalia,madexweynahaSomaliland,madexweynahaPuntland);

</script>
it will out put..
HassanSheikh AhmedSilaanyo CabdiwaliMaxamed
\\
See you next module...

///
Sophisticate
SomaliNet Heavyweight
SomaliNet Heavyweight
Posts: 3037
Joined: Mon Mar 18, 2013 12:09 am

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by Sophisticate »

Bro, I've noticed that you aren't gaining traction with your javascript modules. Why don't you take your modules and make a javascript course on Udemy. At least, there you can generate some money and have a more receptive audience. You would think half of the people here are crackpot political scientists because that's what they focus on most of the time.
User avatar
GalliumerianSlayer
SomaliNet Heavyweight
SomaliNet Heavyweight
Posts: 3528
Joined: Mon Feb 11, 2013 3:26 pm

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by GalliumerianSlayer »

Keep up the good job.
User avatar
TheMightyNomad
SomaliNet Heavyweight
SomaliNet Heavyweight
Posts: 1704
Joined: Thu Apr 16, 2015 6:47 am

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by TheMightyNomad »

Sophisticate wrote:Bro, I've noticed that you aren't gaining traction with your javascript modules. Why don't you take your modules and make a javascript course on Udemy. At least, there you can generate some money and have a more receptive audience. You would think half of the people here are crackpot political scientists because that's what they focus on most of the time.
You don't see the irony in that statement,when the names of Somali politicians and political states are included in the OP's codes. :lol: :lol:
But i would agree with you, it is better afisoone created a course on Udemy instead or created a seperate blog dedicated to teaching Somalis or discussing different technologies.

Somalinet is the last place i would come to discuss computer programming, i personally use http://www.Github.com and post my projects on there. I would never waste my time with people on here.
Sophisticate
SomaliNet Heavyweight
SomaliNet Heavyweight
Posts: 3037
Joined: Mon Mar 18, 2013 12:09 am

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by Sophisticate »

TheMightyNomad wrote:
Sophisticate wrote:Bro, I've noticed that you aren't gaining traction with your javascript modules. Why don't you take your modules and make a javascript course on Udemy. At least, there you can generate some money and have a more receptive audience. You would think half of the people here are crackpot political scientists because that's what they focus on most of the time.
You don't see the irony in that statement,when the names of Somali politicians and political states are included in the OP's codes. :lol: :lol:
But i would agree with you, it is better afisoone created a course on Udemy instead or created a seperate blog dedicated to teaching Somalis or discussing different technologies.

Somalinet is the last place i would come to discuss computer programming, i personally use http://www.Github.com and post my projects on there. I would never waste my time with people on here.
I see what the brother did there. :lol: I wouldn't expect the political section diehards to comment unless the tagline reads "Somali politicians in an array..." Then, they would convulse from excitement. They are missing out, especially with a rise in Tech jobs. There are so many positions and not enough people to fill them, hence, there have been coding boot camps popping up all over the place in the US and Canada. I tend to advise young people that I meet to consider STEM fields. People tend to shy away from them, merely because they think they are deficient at math. I kind of wish they knew that you are not required to have an aptitude for something to be in it, or to excel. In fact, much of that is learned with patience and persistence. I also recommend a course to them on Coursea which is called "Learning How to Learn". It can be taken by people of all ages including 8th graders. I kid you not. In any case, it challenges outmoded myths on learning, tackles procrastination and teaches effective study techniques which help with recall and memorization. It's helpful when trying to learn any subject matter. I wish I had access to it when I was younger. It would have saved me a lot of time. In any case, I think the good brother is doing a service by trying to educate the code illiterate. You're right a blog would come in handy. Github is great for sharing projects. And StackOverflow is great for looking things up. Are you considering Comp Sci?
User avatar
HooBariiska
SomaliNet Super
SomaliNet Super
Posts: 7692
Joined: Thu Apr 08, 2004 7:00 pm
Location: In My Ardaaa - Ballin' & Haasaawin'

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by HooBariiska »

angular much better

Code: Select all

var obj = {firstName: 'Foo', LastName: 'Bar'};
var log = [];
angular.forEach(obj, function(value, key) {
  console.log(key + ': ' + value);
})
User avatar
TheMightyNomad
SomaliNet Heavyweight
SomaliNet Heavyweight
Posts: 1704
Joined: Thu Apr 16, 2015 6:47 am

Re: MODULE3: ARRAYS Distructuring into variables part2

Post by TheMightyNomad »

Sophisticate wrote:
TheMightyNomad wrote:
Sophisticate wrote:Bro, I've noticed that you aren't gaining traction with your javascript modules. Why don't you take your modules and make a javascript course on Udemy. At least, there you can generate some money and have a more receptive audience. You would think half of the people here are crackpot political scientists because that's what they focus on most of the time.
You don't see the irony in that statement,when the names of Somali politicians and political states are included in the OP's codes. :lol: :lol:
But i would agree with you, it is better afisoone created a course on Udemy instead or created a seperate blog dedicated to teaching Somalis or discussing different technologies.

Somalinet is the last place i would come to discuss computer programming, i personally use http://www.Github.com and post my projects on there. I would never waste my time with people on here.
I see what the brother did there. :lol: I wouldn't expect the political section diehards to comment unless the tagline reads "Somali politicians in an array..." Then, they would convulse from excitement. They are missing out, especially with a rise in Tech jobs. There are so many positions and not enough people to fill them, hence, there have been coding boot camps popping up all over the place in the US and Canada. I tend to advise young people that I meet to consider STEM fields. People tend to shy away from them, merely because they think they are deficient at math. I kind of wish they knew that you are not required to have an aptitude for something to be in it, or to excel. In fact, much of that is learned with patience and persistence. I also recommend a course to them on Coursea which is called "Learning How to Learn". It can be taken by people of all ages including 8th graders. I kid you not. In any case, it challenges outmoded myths on learning, tackles procrastination and teaches effective study techniques which help with recall and memorization. It's helpful when trying to learn any subject matter. I wish I had access to it when I was younger. It would have saved me a lot of time. In any case, I think the good brother is doing a service by trying to educate the code illiterate. You're right a blog would come in handy. Github is great for sharing projects. And StackOverflow is great for looking things up. Are you considering Comp Sci?
Yeah i agree, people are missing out. Being able to program a computer is a useful skill. Where i live there is huge demand for it, many foreign tech companies and startups are popping up everywhere.

Ive tried talking some of my friends into it, but people usually think you have to be a major geek or super wizard to learn it. Which is just not the case, i agree it is time consuming as hell, but it goes over smoothly if you have a project or something you want to build in mind.

Yeah i am actually studying information technology, First year.
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Careers - Engineering, Science & Computers”