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
| /* | |
| Introducere in HTTP methods: GET, POST, PUT, DELETE | |
| aceste 4 metode fac parte din protocolul HTTP si formeaza baza pentru comunicarea client/Server in API-uri REST | |
| Fiecare metoda exprima o intentie diferita asupra unei resurse | |
| GET ----> CITIRE |
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
| /* | |
| Introducere in HTTP methods: GET, POST, PUT, DELETE | |
| aceste 4 metode fac parte din protocolul HTTP si formeaza baza pentru comunicarea client/Server in API-uri REST | |
| Fiecare metoda exprima o intentie diferita asupra unei resurse | |
| GET ----> CITIRE |
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 num = 10 | |
| var num = 11 | |
| console.log(num) | |
| const obj = {1: 'a', 2: 'b', 3: 'c'} | |
| const set = new Set( [1, 2, 3, 4, 5] ) | |
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 sum = eval('10*10+1') | |
| console.log(sum) | |
| sessionStorage.setItem("code", 123) | |
| /* | |
| A. forever, datele nu se pierd FALSE | |
| B. cand user inchide tab-ul TRUE correct answer |
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
| <div onclick="console.log('div')"> | |
| <p onclick="console.log('p')"> | |
| click me | |
| </p> | |
| </div> |
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
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Date; | |
| import java.util.Iterator; | |
| import java.util.NoSuchElementException; | |
| import java.util.Random; | |
| import java.util.HashSet; | |
| import java.util.Set; |
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
| body { | |
| font-family: Arial; | |
| text-align: center; | |
| } | |
| .gallery { | |
| display: flex; | |
| flex-wrap: wrap; |
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 http = require('http') | |
| const fs = require('fs') | |
| const path = require('path') | |
| const port = 3000 | |
| function serveFile(res, filePath, contentType) { | |
| fs.readFile(filePath, (err, data) => { |
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
| <html> | |
| <head> | |
| <script> | |
| function calculateFactorial() { | |
| const number = document.getElementById("number").value; |
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 express = require('express') | |
| const path = require('path') | |
| const app = express() | |
| const PORT = 3000; | |
| //functie pentru a calcula factorialul | |
| function factorial(num) { |