Qu'affiche le programme suivant ?
function f() {
// Installer fs-promise avec : npm install fs-promise | |
const http = require('http') | |
const fs = require('fs-promise') | |
function factorial (n) { | |
return n === 0 ? 1 : n * factorial(n - 1) | |
} | |
const server = http.createServer((req, res) => { |
const data = { | |
persons: [ | |
{ id: 0, name: "Sherlock Holmes", numbers: ["555-0101", "555-0199"] }, | |
{ id: 1, name: "John Watson", numbers: ["555-0102", "555-0198"] } | |
], | |
groups: [ | |
{ id: 0, name: "Londonians", personsIds: [0, 1] }, | |
{ id: 1, name: "Doctors", personsIds: [1] } | |
] |
pragma solidity ^0.4.0; | |
contract WakeMeUp { | |
event Print(string _name, uint _value); | |
event PrintString(string _name, bytes32 _value); | |
struct Alarm { | |
uint id; | |
address owner; |
contract Roulette { | |
uint public lastRoundTimestamp; | |
uint public nextRoundTimestamp; | |
address _creator; | |
uint _interval; | |
enum BetType { Single, Odd, Even } |
mutation { | |
createUser(name: "Sébastien") { | |
id | |
name | |
} | |
} | |
mutation { | |
createUser(name: "Mary") { | |
id |
/** | |
* Hey :) | |
* The theme has moved to a dedicated repository: https://github.com/scastiel/pm-inbox-theme | |
*/ |
<?php | |
echo "Hello!"; | |
?> |
import Head from 'next/head' | |
export const SeoHeaders = ({ | |
title, | |
description, | |
author, | |
twitterAuthor, | |
twitterSite, | |
url, | |
imageUrl, |
console.log("Hello World!"); | |
// --------------- Variables --------------- | |
let count = 12; | |
console.log(count); | |
count = count + 1; | |
console.log(count); | |
const firstName = 'John'; |