Jump to content

Codecademy - O Metoda Simpla De A Invata Programare


gaby

Recommended Posts

Codecademy.com este o platforma prin intermediul careia puteti invata intr-un mod interactiv diverse limbaje de programare, in momentul de fata pe site existand 8 cursuri de unde puteti invata.

Cursurile sunt explicate clar, iar rezultatele vi se vor afisa in timp real pentru a vedea exact ceea ce produce o anumita portiune de cod.

codecademy.png

Numai bine :pct2: !

  • Upvote 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Bun. Am ajuns la o chestie numita Playng with numbers

Let's check out some of the cool things you can do with numbers. You can do all sorts of math, like division.

Let's divide your number by 2. Use the / to do division.

Hit: You can use the variable number the same way you use a number. Just enter number / 2.

Aici ce trebuie s aintroduc mai exact ca nu inteleg

E o chestie interesanta :)

Link to comment
Share on other sites

Am mai intalnit o chestie.

La What If? partea 4, numita All equals are not equal

You may have noticed we've used two types of equals thus far, the single equals (=) and the double or triple equals (==, ===). The single equals (=) assigns a variable, while the double and triple equals (==, ===) are used to check equivalence between values. Since == can have some odd behavior in JavaScript, it is almost always better to use ===.

Run this exercise to see what it does. It first sets the variable word to the string "that". Change the code so that word === "that" evaluates to true, and the print() command is run.

Deci aici cum ar trebui sa rate codul? :(

Link to comment
Share on other sites

Codul dat de ei, este:

var word = "this";
if( word === "that" ) {
print( "word is equal to 'that'" );
}[/code] [b][color="#008000"]Ce ti se cere ?[/color][/b]
[code]var word = "that";
if( word === "that" ) {
print( "word is equal to 'that'" );
}

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.