Yiffit.net
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 years ago

Exam Answer

programming.dev

message-square
129
786

Exam Answer

programming.dev

@[email protected] to Programmer [email protected] • 2 years ago
message-square
129
  • FlumPHP
    link
    fedilink
    26•2 years ago

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

    • @[email protected]
      link
      fedilink
      English
      12•2 years ago

      There technically is!

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

      Well. In browsers, anyways.

      • @[email protected]
        link
        fedilink
        4•2 years ago

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

    • @[email protected]
      link
      fedilink
      7•
      edit-2
      2 years ago
      function print(str) {
        console.log(str)
      }
      

      FTFY

    • @[email protected]
      link
      fedilink
      -2•2 years ago

      deleted by creator

      • @[email protected]
        link
        fedilink
        English
        2•2 years 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 [email protected]

[email protected]

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: [email protected]

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
  • 1.73K users / day
  • 1 user / week
  • 5.28K users / month
  • 3.55K users / 6 months
  • 20K subscribers
  • 1.16K Posts
  • 41.9K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.2
  • Modlog
  • Legal
  • Docs
  • Code
  • join-lemmy.org