KDE Social
  • 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
130
fedilink
786

Exam Answer

programming.dev

@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago
message-square
130
fedilink
  • FlumPHP
    link
    fedilink
    26•1 year ago

    “Monday”.length is working JavaScript and does equal 6. No print command afaik though.

    • @dvlsg@lemmy.world
      link
      fedilink
      English
      12•1 year ago

      There technically is!

      https://developer.mozilla.org/en-US/docs/Web/API/Window/print

      Well. In browsers, anyways.

      • @Scrollone@feddit.it
        link
        fedilink
        4•1 year ago

        Yes, but it prints the page, so in this case it wouldn’t print anything

    • @PrettyFlyForAFatGuy@feddit.uk
      link
      fedilink
      7•
      edit-2
      1 year ago
      function print(str) {
        console.log(str)
      }
      

      FTFY

    • @AnAngryAlpaca@feddit.de
      link
      fedilink
      -2•1 year ago

      deleted by creator

      • @kia@lemmy.ca
        link
        fedilink
        English
        2•1 year ago

        You don’t need terminating semicolons in JavaScript. They’re added in if missing. It can actually cause a few bugs around returns.

Programmer Humor@programming.dev

!programmer_humor@programming.dev

Subscribe from Remote Instance

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
  • 963 users / day
  • 4.96K users / week
  • 9.03K users / month
  • 17.8K users / 6 months
  • 23.2K subscribers
  • 1.39K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org