This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var school = { | |
name: "BIT", | |
address: "Nemanjina 4", | |
city: "Belgrade", | |
isOpen: true, | |
teachers: ["Marko", "Nenad", "Stanko"], | |
students: ["Pera", "Mika", "Zika"] | |
} | |
var speaker = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Represent movie genre | |
* @constructor | |
* @param {string} genreName - The genre name | |
*/ | |
function Genre(genreName) { | |
// properties | |
this.name = genreName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Movie(title, length, genre) { | |
this.title = title; | |
this.length = length; | |
this.genre = genre; | |
} | |
Movie.prototype.getInfo = function () { | |
return this.title + ", " + this.genre; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Represents person | |
* @constructor | |
* @param {string} name - First name | |
* @param {string} surname - Last name | |
*/ | |
function Person(name, surname) { | |
this.name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Movie list</title> | |
<link rel="stylesheet" href="./css/main.css"> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dataController = (function () { | |
var data = { | |
movies: [], | |
totalMoviesLength: 0 | |
}; | |
// Movie constructor | |
function Movie(title, length, genre) { | |
this.title = title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"limit": 10, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"total_count": 1 | |
}, | |
"drivers": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dataController = (() => { | |
const data = { | |
movies: [], | |
totalMoviesLength: 0 | |
}; | |
class Movie { | |
constructor(title, length, genre) { | |
this.title = title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"react-app" | |
], | |
"rules": { | |
"semi": [ | |
"error", | |
"never" | |
], | |
"quotes": [ |