Lemmy@trevor.coffee
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago

Exam Answer

programming.dev

message-square
176
fedilink
785

Exam Answer

programming.dev

@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago
message-square
176
fedilink
alert-triangle
You must log in or register to comment.
  • @skulbuny@sh.itjust.works
    link
    fedilink
    English
    16•1 year ago

    JavaScript has [string].length

    • @breadsmasher@lemmy.world
      link
      fedilink
      English
      8•1 year ago

      doesnt have print nor allow variable declaration without keywords

      • unalivejoy
        link
        fedilink
        English
        25•1 year ago

        print() will print the text to a physical printer with paper and everything. Don’t confuse it with console.log and use it in a loop.

        • @tourist@lemmy.world
          link
          fedilink
          8•1 year ago

          it’s so rough learning this by accident

      • @Downcount@lemmy.world
        link
        fedilink
        12•
        edit-2
        1 year ago

        It would have print if it was previously declared as function.

        Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.

        • @kautau@lemmy.world
          link
          fedilink
          9•
          edit-2
          1 year ago

          JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup

          Nothing is true

          true !== 1

          true

          true + true + true === 3

          true

          Everything is permitted

          []+[]

          ''

      • @bleistift2@feddit.de
        link
        fedilink
        English
        5•1 year ago

        Sure you can write foo = 3 in JavaScript. It’s a global variable and can be referenced as either foo or window.foo.

Programmer Humor@programming.dev

!programmer_humor@programming.dev
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 54 users / day
  • 455 users / week
  • 1.24K users / month
  • 3.78K users / 6 months
  • 1 subscriber
  • 1.4K Posts
  • 49K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org