Closed
Bug 1505691
Opened 7 years ago
Closed 7 years ago
i click on run and print page is activated!
Categories
(developer.mozilla.org Graveyard :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: dennisgdaniels, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
1. go here
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
2. put in this code
let ant = 40;
let gift = 10;
let grasshopper = 0;
ant -= gift;
grasshopper += gift;
print('The Ant has ' + ant + 'seeds, and the Grasshopper has ' + grasshopper +' seeds');
.click run
print page is activated!
What happened?
==============
print UI page activated
What should have happened?
==========================
the code should have run
let ant = 40;
let gift = 10;
let grasshopper = 0;
ant -= gift;
grasshopper += gift;
print('The Ant has ' + ant + 'seeds, and the Grasshopper has ' + grasshopper +' seeds');
Is there anything else we should know?
======================================
here's the video
https://www.youtube.com/watch?v=9bODvqW3WDE&feature=youtu.be
Comment 1•7 years ago
|
||
"print" is a function that triggers the print dialog.
what you need is "console.log".
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•