Danalabi miniblogs

  • Danalabi
    0

    A. numbers are quantities, just like you're used to. You can do math with them.

    b. strings are sequences of characters, like the letters a-z, spaces, and even numbers. These are all strings: "Ryan", "4" and "What is your name?" Strings are extremely useful as labels, names, and content for your programs.

    To make a number in your code, just write a number as numerals without quotes: 42, 190.12334.

    To write a string, surround the string with quotes: "What is your name?"

    Write a string with at least 3 words and find the length of the string. Length counts every character in the string—including spaces!





    kas man ir jādara?

    • Viesty
      0

      ... vismaz valodu pasaki.
      Uzraksti teikumu no 3 vārdiem un nosaki teikuma garumu simbolos.

      • Danalabi
        0

        Ujjj Javascript

      • Danalabi
        0

        Kā tas būtu kodā? ("i like nutella").length ?

        • Viesty
          0

          Bez iekavām.

        • Danalabi
          0

          Lol man paņēma ar iekavām.

    • Gek
      0

      Kā tu taisies iemācīties JS, nemākot angļu valodu? -.-

    • Viesty
      0

      https://codecademy.com

      • Danalabi
        0

        Es tieši to tagad daru.

    • Danalabi
      0

      Write code that will evaluate true if I'm coding like a champ! has more than 10 characters.


      Man nesanāk :s

      • Viesty
        0

        Come on. Tur taču pirms tam izcili paskaidro kā kas jādara...

        • Danalabi
          0

          (im coding like a champ!).length > 10 === true

          kas tur nepareizs?

        • mad
          0

          Teksta virknes vienmēr liek pēdiņās.

        • Danalabi
          0

          Oh

        • Danalabi
          0

          ("im coding like a champ!").length > 10 === true


          šādi paņēma. Beidzot kko sāku saprast.. biggrin_mini2.gif

        • Viesty
          0

          Vai tad vajag iekavas?

        • Danalabi
          0

          Jā.

    • Danalabi
      0

      Wtf.

      Find the 4th to 7th letter of the string "wonderful day".


      "wonderful day".substring(4,7)


      un viņš neņem pretī.
      P.S Pie examples rakstīts, ka nevajag iekavas pie wonderful day.

      • mad
        0

        Skaitīšana sākas ar 0

        • Danalabi
          0

          Tas nozīmē, ko?

        • mad
          0

          To, ka tu atrodi 5-8 simbolu.

Atpakaļ Uz augšu