Данный отчёт сгенерирован 10.02.2023 18:21:31 UTC.
HTML версия (этот сайт) сгенерирован 10.02.2023 18:21:38 UTC.
Коммит: [bfeb65b9] add automatic zip creation 10.02.2023 18:21:31
HTML версия (этот сайт) сгенерирован 10.02.2023 18:21:38 UTC.
Коммит: [bfeb65b9] add automatic zip creation 10.02.2023 18:21:31
Задача: Площа прямокутника
10.02.2023 18:21:31
Описание: Є об'єкт rect (прямокутник) із властивостями width і height. Визначте його площу.
Для цього оголосіть функцію square, яка отримує об'єкт прямокутника та повертає його площу.
10.02.2023 18:21:31
Решений: 119
10.02.2023 18:21:31
Площа прямокутника
10.02.2023 18:21:31
function square(r) {
return r.width * r.height;
}
function square(r){
return r.width*r.height;
}
function square(r){
return r.height * r.width
}
function square(r) {
let plosha = r.width * r.height;
return plosha;
}
function square(r){
return (r.width * r.height)
}
function square(r){
return r.width * r.height
}
function square(rect) {
return rect.width * rect.height;
}
function square(r) {
let res = r.width * r.height;
return res;
}
function square(r)
{
return r.width * r.height;
}
function square(r){ return r.width * r.height;}
function square(r){
return r.width * r.height
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width*r.height;
}
function square(r) {
return r.width * r.height;
}
function square(r){
let result = r.width * r.height
return result
}
function square(r)
{
return r.width*r.height
}
function square(r){
return r.width * r.height;
}
function square(r) {
let s = r.width * r.height
return s
}
function square(r){
return r.width * r.height;
}
function square(r)
{
return r.width * r.height;
}
function square(r)
{
return r.width * r.height;
}
function square(r){
return (r.width*r.height)
}
function square(rectangle) {
return rectangle.width * rectangle.height;
}
function square(r)
{
return r.width * r.height;
}
const rect = {
width: 20,
height: 15,
}
function square(rect){
let a = rect.width * rect.height;
return a;
}
console.log(square(rect));
function square(r){
return r.width * r.height;
}
function square(r)
{
squareRect = r.width * r.height
return squareRect;
}
function square(r){
return r.width * r.height;
}
function square(r) {return r.width * r.height;}
function square(r){
return r.width * r.height;
}
const square = (r) =>r.width*r.height;
function square(rect){
return rect.width * rect.height;
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width*r.height
}
function square(r){
return (r.width*r.height);
}
function square(r){
return (r.width * r.height)
}
function square(rect){
return rect.width*rect.height
}
function square(r) {
return (r.width * r.height);
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width * r.height
}
function square(r){
return r.width*r.height
}
function square(r){
return r.width*r.height
}
function square(rect) {
return rect.width * rect.height;
}
function square(r)
{
let result = r.width * r.height
return result;
}
function square(rectangle) {
return rectangle.width * rectangle.height;
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width * r.height
}
function square(r) {
return r.width * r.height
}
function square(r){
let w = r.width;
let h = r.height;
return w*h;
}
function square(r){
r = {width:10, height: 20 }
let squr = r.width * r.height
return squr
}
function square(r){
return r.width*r.height;
}
function square ( r ) {
return ( r.width * r.height)
}
function square(r){
return r.width * r.height
}
function square(r){
return r["width"] * r["height"];
}
function square(r){
return (r.width * r.height);
}
function square(r){
let k = r.width * r.height
return k;
}
let obj = {width: 2, height: 3};
console.log(square(obj));
function square(rect){
let result = rect.width * rect.height
return result
}
function square(r) {
return r.width * r.height;
}
function square(r) {
return r.width * r.height;
}
function square(r) {
return r.width*r.height
}
function square(r){
return r.width*r.height
}
function square (r) {
return r.width * r.height
}
function square(rectangle) {
return rectangle.width * rectangle.height;
}
function square(rect){
return rect.width*rect.height
}
const square =(r) => r.width * r.height;
function square(r){
return r.width*r.height
}
function square(rectangle) {
return rectangle.width * rectangle.height;
}
function square(rectangle) {
return rectangle.width * rectangle.height;
}
function square(rect = {width , height})
{
return rect.width * rect.height
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width*r.height
}
function square(r)
{
return r.width * r.height;
}
function square(r) {
return r.width * r.height
}
function square(r) {
return r.width * r.height;
}
function square(r){
return r.width * r.height
}
function square(r) {
return (r.width*r.height);
}
function square(r){
return (r.width*r.height)
}
function square(r) {
return (r.width * r.height)
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width * r.height
}
function square(r){
return (r.width * r.height);
}
function square(r){
return r.width * r.height
}
function square(r) {
const {width, height} = r;
return width * height;
}
function square(r) {
return (r.height * r.width)
}
function square(r){
result = 1
for (let i in r){
result *= r[i]
}
return result
}
function square(r){
return r.width * r.height
}
function square(r){
return r.width * r.height
}
function square(r)
{
let s = r['width'] * r['height']
return s;
}
function square(r){
return r['width']*r['height']
}
function square(r){
return (r.width*r.height)
}
let obj = {}
for (let i=1; i<=10; i++){
obj["p"+i] ="v"+i;
}
function square(r)
{
result = 1
for (let i in r){
result *= r[i]
}
return result
}
function square(rect) {
return rect.width * rect.height;
}
let rect = { width: 10, height: 20 };
let result = square(rect);
console.log(result);
function square(r) {
return (r.width * r.height)
}
function square(r)
{
let rect = r
return (rect.width * rect.height)
}
const square = (rect) => rect.width * rect.height;
function square(r) {
return (r.width*r.height);
}
function square(r){return r.width*r.height}
function square(r){
return (r.width) * (r.height)
}
function square(r){
return r.width*r.height
}
function square(r){
return r.width*r.height;
}
function square(r){
return r.width * r.height;
}
function square(r){
return r.width*r.height;
}
function square(r){
return(r.width*r.height)
}
function square(r){
return (r.width * r.height)
}
function square(r){
return (r.width*r.height)
}
function square(r){
let a=r.width;
let b=r.height;
let s=a*b;
return s;
}
function square(r) {
if (r.width === "undefined" || r.height === "undefined") throw new Error("Now enough data");
return r.width * r.height
}
function square(r){
return r["width"] * r["height"];
}
function square(r) {
return (r.width*r.height);
}
function square(r){
return r.width * r.height;
}
function square(r) {
return( r.height*r.width)
}
function square(r)
{
return r.width*r.height;
}
function square(r){
return (r.width*r.height)
}
function square(rect){
return rect.width*rect.height
}
function square(r){
let a = r.width;
let b = r.height;
let s = a*b;
return (s)
}
function square(r){
return r.width*r.height
}
function square(rect)
{
return rect.width*rect.height;
}
function square(r)
{
return r.width * r.height;
}
return r.width * r.height;
}
return r.width*r.height;
}
return r.height * r.width
}
let plosha = r.width * r.height;
return plosha;
}
return (r.width * r.height)
}
return r.width * r.height
}
return rect.width * rect.height;
}
let res = r.width * r.height;
return res;
}
{
return r.width * r.height;
}
return r.width * r.height
}
return r.width * r.height;
}
return r.width*r.height;
}
return r.width * r.height;
}
let result = r.width * r.height
return result
}
{
return r.width*r.height
}
return r.width * r.height;
}
let s = r.width * r.height
return s
}
return r.width * r.height;
}
{
return r.width * r.height;
}
{
return r.width * r.height;
}
return (r.width*r.height)
}
return rectangle.width * rectangle.height;
}
{
return r.width * r.height;
}
width: 20,
height: 15,
}
function square(rect){
let a = rect.width * rect.height;
return a;
}
console.log(square(rect));
return r.width * r.height;
}
{
squareRect = r.width * r.height
return squareRect;
}
return r.width * r.height;
}
return r.width * r.height;
}
return rect.width * rect.height;
}
return r.width * r.height;
}
return r.width*r.height
}
return (r.width*r.height);
}
return (r.width * r.height)
}
return rect.width*rect.height
}
return (r.width * r.height);
}
return r.width * r.height;
}
return r.width * r.height;
}
return r.width * r.height
}
return r.width*r.height
}
return r.width*r.height
}
return rect.width * rect.height;
}
{
let result = r.width * r.height
return result;
}
return rectangle.width * rectangle.height;
}
return r.width * r.height;
}
return r.width * r.height
}
return r.width * r.height
}
let w = r.width;
let h = r.height;
return w*h;
}
r = {width:10, height: 20 }
let squr = r.width * r.height
return squr
}
return r.width*r.height;
}
return ( r.width * r.height)
}
return r.width * r.height
}
return r["width"] * r["height"];
}
return (r.width * r.height);
}
let k = r.width * r.height
return k;
}
let obj = {width: 2, height: 3};
console.log(square(obj));
let result = rect.width * rect.height
return result
}
return r.width * r.height;
}
return r.width * r.height;
}
return r.width*r.height
}
return r.width*r.height
}
return r.width * r.height
}
return rectangle.width * rectangle.height;
}
return rect.width*rect.height
}
return r.width*r.height
}
return rectangle.width * rectangle.height;
}
return rectangle.width * rectangle.height;
}
{
return rect.width * rect.height
}
return r.width * r.height;
}
return r.width*r.height
}
{
return r.width * r.height;
}
return r.width * r.height
}
return r.width * r.height;
}
return r.width * r.height
}
return (r.width*r.height);
}
return (r.width*r.height)
}
return (r.width * r.height)
}
return r.width * r.height;
}
return r.width * r.height
}
return (r.width * r.height);
}
return r.width * r.height
}
const {width, height} = r;
return width * height;
}
return (r.height * r.width)
}
result = 1
for (let i in r){
result *= r[i]
}
return result
}
return r.width * r.height
}
return r.width * r.height
}
{
let s = r['width'] * r['height']
return s;
}
return r['width']*r['height']
}
return (r.width*r.height)
}
let obj = {}
for (let i=1; i<=10; i++){
obj["p"+i] ="v"+i;
}
{
result = 1
for (let i in r){
result *= r[i]
}
return result
}
return rect.width * rect.height;
}
let rect = { width: 10, height: 20 };
let result = square(rect);
console.log(result);
return (r.width * r.height)
}
{
let rect = r
return (rect.width * rect.height)
}
return (r.width*r.height);
}
return (r.width) * (r.height)
}
return r.width*r.height
}
return r.width*r.height;
}
return r.width * r.height;
}
return r.width*r.height;
}
return(r.width*r.height)
}
return (r.width * r.height)
}
return (r.width*r.height)
}
let a=r.width;
let b=r.height;
let s=a*b;
return s;
}
if (r.width === "undefined" || r.height === "undefined") throw new Error("Now enough data");
return r.width * r.height
}
return r["width"] * r["height"];
}
return (r.width*r.height);
}
return r.width * r.height;
}
return( r.height*r.width)
}
{
return r.width*r.height;
}
return (r.width*r.height)
}
return rect.width*rect.height
}
let a = r.width;
let b = r.height;
let s = a*b;
return (s)
}
return r.width*r.height
}
{
return rect.width*rect.height;
}
{
return r.width * r.height;
}