Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
// 1. Написать 5 вариантов записи строки: It's beautiful day. I like "free day";
console.log('It\'s beautiful day. I like "free day".');
console.log("It's beautiful day. I like \"free day\".");
console.log("It's beautiful day. " + 'I like "free day".');
console.log(`It's beautiful day. I like "free day".`);
console.log(`It's beautiful day.` + ' I like "free day".');
// 2. Написать правильное умножение двух дробных чисел (например, 5.45 и 8.3) => 5.45 * 8.3 === 5.45*8.3.
var x = (5.45);
var y = (8.3);
var ch = (10);
var decision = (x * ch) * (y * ch) / (ch * ch);
console.log (decision);
//  3. "string" + 2 => NaN исправить
console.log (+"string" + 2);
console.log (Number ("string" + 2));
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers