Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Noul format Jpegli iși propu...

Dade, dade

Parola la lock screen

Deparazitare externa pisici fara ...
 Seriale turcesti/coreene online H...

Merita un Termostat Smart pentru ...

Sfat achizitie MTB Devron Riddle

Problema mare cu parintii= nervi ...
 switch microtik

Permis categoria B la 17 ani

Sfaturi pentru pregatirea de eval...

Crapaturi placa
 cum imi accesez dosarul electroni...

Momentul Aprilie 1964

Sursa noua - zgomot ?

A fost lansat Ubuntu 24.04 LTS
 

Unexpected token {

- - - - -
  • Please log in to reply
3 replies to this topic

#1
tylose

tylose

    Junior Member

  • Grup: Junior Members
  • Posts: 27
  • Înscris: 08.11.2017
var flavor = "strawberry";
var vessel = "cone";
var toppings = "cookies";

if (
( flavor === "vanilla" || "chocolate" ) &&
( vessel ==="cone" || "bowl" ) &&
( toppings === "sprinkles" || "peanuts" )
) {
console.log("I'd like two scoops of " + flavor + " ice cream in a " + vessel + " with " + toppings + ".");
} else {
console.log("sdfsddddd");
}

nu-mi dau seama de ce apare unexpected token-u ala

Edited by tylose, 09 November 2017 - 00:57.


#2
tylose

tylose

    Junior Member

  • Grup: Junior Members
  • Posts: 27
  • Înscris: 08.11.2017
var flavor = "strawberry";
var vessel = "cone";
var toppings = "cookies";

if ( flavor === ( "vanilla" || "chocolate" ) && vessel === ( "cone" || "bowl" ) && toppings === ( "sprinkles" || "peanuts" ) ) {
   console.log("I'd like two scoops of " + flavor + " ice cream in a " + vessel + " with " + toppings + ".");
} else {
   console.log("sdfsd");
}

l-am modificat

Edited by tylose, 09 November 2017 - 01:54.


#3
tylose

tylose

    Junior Member

  • Grup: Junior Members
  • Posts: 27
  • Înscris: 08.11.2017
nu mai conteaza

#4
Sonic3R

Sonic3R

    Member

  • Grup: Members
  • Posts: 836
  • Înscris: 02.02.2011
era gresit

flavor === "vanilla" || "chocolate"

puteai

flavor === "vanilla" || flavor === "chocolate"
macar e citibil

Anunturi

Second Opinion Second Opinion

Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale.

Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate