Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Start exercise_2
- var someString1 = "It\'s a beautiful day. I like \"free day\".";
- var someString2 = 'It\'s a beautiful day. I like \"free day\".';
- var someString3 = `It\'s a beautiful day. I like \"free day\".`;
- var someString4 = `It\'s a beautiful day. I like \'free day\'.`;
- var someString5 = `It\'s a beautiful day. I like \`free day\`.`;
- console.log(someString);
- // Start exercise_3
- var numMult = 5.45 * 8.3;
- var numRes = parseFloat(numMult.toFixed(3)); // использую parseFloat т.к. toFixed() возвращает строку
- console.log(numRes === numRes);
- // Start exercise_4
- var nanStr = +"string" + 2;
- console.log(nanStr);
Add Comment
Please, Sign In to add comment