GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing javascript.info — Assignment result

  • Tutorial
  • The JavaScript language
  • JavaScript Fundamentals
  • Basic operators, maths
back to the lesson

Assignment result

importance: 3

What are the values of a and x after the code below?

let a = 2;

let x = 1 + (a *= 2);

The answer is:

  • a = 4 (multiplied by 2)
  • x = 5 (calculated as 1 + 4)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.