blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
132
path
stringlengths
3
236
src_encoding
stringclasses
29 values
length_bytes
int64
8
7.94M
score
float64
2.52
5.72
int_score
int64
3
5
detected_licenses
listlengths
0
142
license_type
stringclasses
2 values
text
stringlengths
8
7.94M
download_success
bool
1 class
7ddbfb60fa6c1041108c5947be4060c0dc5e9807
JavaScript
jckayy/giphyassignment
/javascript.js
UTF-8
5,723
2.96875
3
[]
no_license
$(document).ready(function() { var animals = ["dog", "cat", "rabbit", "hamster","skunk","goldfish","bird","ferret","turtle","goat","cow","pig"]; var globalanimalgif = new Array(); var globalanimaljpg = new Array(); var globalanimalstatus = new Array(); var globalanimmalrating = new Array(); var globaldisplaypic = ne...
true
f818d389d2e1b8a8b50a320ad5a11734606df920
JavaScript
Bllynn/CodeWars
/7kyu/fifa17Launch.js
UTF-8
2,563
4.3125
4
[]
no_license
/*Back before I learned to code I played a lot of Fifa. One of the many things I've wasted a good portion of life on! Still, I just saw a TV advert announcing the release of the new version, so thought it deserved a kata in memory of the many happy hours. You have placed bets on a series of football matches. Your tick...
true
37b0198ca425df774b7ade65cacf1fa9d987eb13
JavaScript
Teradoks/Kalkulyator
/Calculator.js
UTF-8
1,607
3.484375
3
[]
no_license
const readline = require('readline');//подключение модуля readline const nl = readline.createInterface({ input: process.stdin, output: process.stdout }); let num1 = 0; let num2 = 0; let operation = null; function input_num1(){ nl.question('Введите первое значение: ', function (argument) { num1 = parseFlo...
true
382426a33c13ca19cc01b357c34368bded002943
JavaScript
samuelfchen/discordpong
/networking/public/js/game.js
UTF-8
1,535
3.03125
3
[]
no_license
const canvas = document.getElementById('mycanvas'); const WHITE = 0xFFFFFF; const BLUE = 0x0000FF; let draw = false, timeout = false, data = []; const app = new PIXI.Application({ view: canvas, width: 600, height: 600 }); // Socket stuff var socket = io('http://localhost:3000', { transports: ['websocket...
true
1f04cc8a6beee814fc8219a6e62349980e2afc86
JavaScript
HasanBaranK/MultiplayerBrowserGame2
/static/collision.js
UTF-8
3,061
3
3
[]
no_license
////////////////////QUAD TREE/////////////////////////////// function initializeQuadTree(quadTree,collisionMap) { quadTree = new Quadtree({ x: 0, y: 0, width: 8000, height: 8000 }, 15, 6); for (let i = 0; i < collisionMap.length; i++) { let collision = collisionMap[i]...
true
d7cfe79acedf896a972f21ce313d1ab36196d248
JavaScript
nermin-web/jsTable
/table.js
UTF-8
4,033
3.140625
3
[]
no_license
var test = []; var count = 1; function fillTable() { let arr = { first_name: document.getElementById('first_name').value, last_name: document.getElementById('last_name').value, address: document.getElementById('address').value, phone: document.getElementById('phone').value }...
true
8569e585295473525afed88265d14696e8a96ae9
JavaScript
Rajchary/TaskTracker
/src/App.js
UTF-8
1,317
2.875
3
[]
no_license
import {useState} from 'react' import Tasks from './components/Tasks.js' import Header from './components/Header.js' import AddTask from './components/AddTask.js' function App() { const [tasks,setTask] = useState([ { id:1, text:"Wanna do something", reminder:true, date:"18th August...
true
739cb1516e9ffa9972d6f76de610e3c94212c3f1
JavaScript
saronph/javascript-rodrigo-branas
/expressoes-regulares/exemplo5.js
UTF-8
240
3.234375
3
[]
no_license
// {n} = especifica a quantidade de caracteres é necessário (respeitando o range) var regExp = /^\([0-9]{2}\) [0-9]{4}-[0-9]{4}$/; var telefone = "(80) 9942-1234"; console.log(regExp.exec(telefone)); console.log(regExp.test(telefone));
true
24bb7cd890b8644b7f88fbf4d8072ef72e659f1f
JavaScript
JeffOlson96/nhl_api_test_env
/src/d3_components/SunburstComp.js
UTF-8
1,143
2.546875
3
[]
no_license
import React, { Component } from 'react'; import * as d3 from 'd3'; export default class Sunburst extends Component { constructor(props) { super(props); this.state = { data: null, teams: null }; this.drawChart = this.drawChart.bind(this); } componentDidMount(props) { this.setS...
true
a1a5dd0f8f5ebde34bc988c8bf7233c1ccb551fd
JavaScript
bibdectrl/hangman
/hngmn.js
UTF-8
2,299
3.453125
3
[]
no_license
var words; var currentWord; var guessesLeft; var guessDict; var drawingInstructions; var guessButton; function preload(){ words = loadStrings("words.txt"); } function chooseWord(){ return words[Math.floor(Math.random() * words.length)]; } function checkWin(){ for (var i = 0; i < currentWord.length; i++){ ...
true
e791f9db99a2478fcedb83c2b5308858ce9814e5
JavaScript
klay-jensen/klae-bot
/index.js
UTF-8
6,054
2.53125
3
[]
no_license
const DiscordMusicBot = require("./structures/DiscordMusicBot"); const client = new DiscordMusicBot(); const { DiscordTogether } = require('discord-together'); const Discord = require("discord.js") client.snipes = new Discord.Collection(); const Chatbot = require("discord-chatbot"); const RPC = require('discord-rpc')...
true
71170adb2069fb47c673ad610a8d0b43565468a0
JavaScript
kylejoe/Notes
/js/backbone/project/js/flowerApp.js
UTF-8
877
3
3
[]
no_license
//Create 3 instances of singleFlowerModel var redRoses = new app.singleFlower({ name: "Red Roses", price: 39.95, color: "Red", img: "images/redRoses.jpg", link: "redRose" }); var rainbowRoses = new app.singleFlower({ name: "Rainbow Roses", price: 29.95, color: "orange", link: "rainb...
true
ddd5bb4c4e3bbdbd7b71d902c29069ba343e8936
JavaScript
valentingalabov/SoftUni-Software-Engineering
/JS Advanced/JS Advanced/11. EXAM PREPARATION/02 .Repository/tests.js
UTF-8
4,074
3.09375
3
[]
no_license
let { Repository } = require("./solution.js"); const expect = require('chai').expect; describe("Tests …", function () { let properties; let repository; let entity; beforeEach('optional description', function () { properties = { name: "string", age: "number", ...
true
713eb447106a741cc1fbe348907637e6d5c5408a
JavaScript
chabco/bag-app-back-end
/routes/users.js
UTF-8
2,752
2.71875
3
[]
no_license
var express = require('express'); var router = express.Router(); const db = require('../db'); const bcrypt = require('bcrypt'); const randToken = require('rand-token'); // MIGHT DELETE LATER // Obtain information (all users) from DB. router.get('/', (req, res) => { db.query("SELECT * FROM users", (err, results) =>{ ...
true
4388cc8fb7d8d191ede7db0b79a2623546451e4f
JavaScript
tukeJonny/MyMapWithAPI
/APITester.js
UTF-8
8,176
2.875
3
[ "MIT" ]
permissive
var lat = 35.6581; var lng = 139.7414; var panoramioPlace = new Array(10); var panoramioLat = new Array(10); var panoramioLng = new Array(10); var placeIndex = 0; var markers = []; var latTemp = 0; var lngTemp = 0; function addOnLoad(func) { try { window.addEventListener("load", func, false); } catch(e) { //IE用 ...
true
0138acb9c8021347b255ba4b45905f04822c5c9c
JavaScript
cezarpm/TDD
/aa.js
UTF-8
974
4.59375
5
[]
no_license
// Criando uma Promise em JavaScript const testaPromise = (error = false) => { // Declaramos uma new Promise com os parametros resolve e reject return new Promise((resolve, reject) => { if (error) { // Reject serve para rejeitar a Promise reject('Deu ruim irmão') } ...
true
6ea01cb3355456057f7a8f04909b4ca964aaa32b
JavaScript
Samsung/Castanets
/ui/file_manager/file_manager/foreground/js/ui/gear_menu.js
UTF-8
3,674
2.515625
3
[ "BSD-3-Clause" ]
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @param {!HTMLElement} element * @constructor * @struct */ function GearMenu(element) { /** * @type {!HTMLMenuItemElement} * @const */...
true
8402b616ec3f7d3087f8fe6bc52f3636cb9fdbf8
JavaScript
RakibRahman/JavaScript
/OOP/classes/inheritance.js
UTF-8
855
4.0625
4
[]
no_license
class Animal { constructor(animal, name, age, breed) { console.log(`Name of the ${animal} is ${name}`); this.animal = animal; this.name = name; this.age = age; this.breed = breed; } info() { console.log(`Age:${this.age} years old`); console.log(`Breed is: ${this.breed}`); console.l...
true
70bbad33c9f5f5c8efc37ff0abf4e32f4ad786f0
JavaScript
timcash/effect_pipeline
/src/index.js
UTF-8
871
2.6875
3
[]
no_license
// ============================================== // // IMPORTS // // ============================================== const R = require('ramda') // ============================================== // // SETUP // // ============================================== const pipe = R.pip...
true
b107b44a907564fe195de43c41d0f0a40a1d4bcc
JavaScript
mrupavatharam/todoapp
/server/tests/server.test.js
UTF-8
5,896
2.640625
3
[]
no_license
const expect = require('expect'); const request = require('supertest'); const {ObjectID} = require('mongodb'); const {app} = require('../server'); const {Todo} = require('../models/todo'); const mockTodos = [ { _id: new ObjectID(), "text":"Test 21 todo for testing" }, { _id:new Obj...
true
aa8bffdc72b70dcb590fc066363411a13f913ed9
JavaScript
yisxa/wordpress-theme-portfolio
/theme-related-info/gulpProjectWP/src/index.js
UTF-8
278
4.03125
4
[]
no_license
// ES6 const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] const divisibleBy3ES6 = array.filter(v => v % 3 === 0); console.log(divisibleBy3ES6); // [3, 6, 9, 12, 15] let arr = [1, 4, 9]; let squareRoots = arr.map((num) =>Math.sqrt(num)); console.log(squareRoots)
true
c3fdd9d4b20a261e72a98041699b8d83e066177e
JavaScript
phuwin/react-redux-learning
/src/reducers/reducer_active_book.js
UTF-8
302
2.625
3
[ "MIT" ]
permissive
/** * * @param {*} state This is not an application state, only the state this reducer is responsible for * @param {*} action */ export default function(state = null, action) { switch (action.type) { case "BOOK_SELECTED" : return action.payload default : return state; } }
true
1db69850ba2f8e37d64b8fd69550b43e95ab4ad8
JavaScript
rantrix/calendator
/index.js
UTF-8
7,162
3.109375
3
[ "MIT" ]
permissive
'use strict'; // Copyright (c) 2017 Dexter Vu. // Licensed under the MIT License (MIT), see // https://github.com/rantrix/calendator /* global define */ (function () { var EMPTY_CALENDAR = Object.freeze([]); var NUMBER_OF_DAYS_IN_A_WEEK = 7; var SUN = 0; var MON = 1; var TUE = 2; var WED = 3; var ...
true
224ccd3af826023b992c09d033c509a9589eacc8
JavaScript
MeowMasha/Omi
/commands/owner/terminal.js
UTF-8
1,013
2.65625
3
[ "MIT" ]
permissive
const { Client, Message, MessageEmbed } = require("discord.js"); const child = require("child_process"); module.exports = { name: "terminal", aliases: ["bash", "sh"], usage: "commands", description: "Command to Execute Terminal Commands inside Discord.", /** *@param {Client} client *@param {Message} me...
true
53d79587e9d427b742117815c46f7c9944e71f97
JavaScript
MAXON-BY/react-redux-budget-calc
/src/redux/reducers/calcReducer.js
UTF-8
816
2.578125
3
[]
no_license
import {CALC_EXPENSES, CALC_HISTORY, CALC_INCOME, CALC_TOTAL} from "../types"; const initialState = { history: [], total: 0, income: 0, expenses: 0 } export const calcReducer = (state = initialState, action) => { const {type, payload} = action switch (type) { case CALC_HISTORY: ...
true
34e05eb819a9cdc2f0398f1911af2120ae27d080
JavaScript
giolapid/counter
/js/app.js
UTF-8
960
3.734375
4
[]
no_license
function question(name, start, end, inc){ var x = parseInt(inc); var st = parseInt(start); var en = parseInt(end); var text = ""; //Checks name if it is letters if(!isNaN(name)){ alert("Please write your name"); } //checks if starting and ending numbers are between 5 and 100 if((st < 5 || st>100)||(en < ...
true
b479a6905835c1d95fcbc526b4aa01ba9b09da27
JavaScript
bruceeewong/lagou-camp
/ecmascript/es2015/28-generator.js
UTF-8
300
3.5
4
[]
no_license
// 生成器 Generator function* foo() { console.log("111"); yield 100; console.log("222"); yield 200; console.log("333"); yield 300; } const generator = foo(); console.log(generator.next()); console.log(generator.next()); console.log(generator.next()); console.log(generator.next());
true
12dcfe202b479b2527d82578fbe95c6698eac472
JavaScript
YBFACC/MyLeetCode
/JS/85-最大矩形-hard.js
UTF-8
1,368
3.515625
4
[]
no_license
/* * @lc app=leetcode.cn id=85 lang=javascript * * [85] 最大矩形 */ // @lc code=start /** * @param {character[][]} matrix * @return {number} */ var maximalRectangle = function (matrix) { if (matrix.length === 0) return 0 const col = matrix[0].length const dp = Array.from({ length: col }, () => 0) let maxAr...
true
b8418f5f0b134da78956678a5d8209e3b7764491
JavaScript
lishulongVI/leetcode
/javascript/113.Path Sum II(路径总和 II).js
UTF-8
2,196
3.453125
3
[ "MIT" ]
permissive
/* <p>Given a binary tree and a sum, find all root-to-leaf paths where each path&#39;s sum equals the given sum.</p> <p><strong>Note:</strong>&nbsp;A leaf is a node with no children.</p> <p><strong>Example:</strong></p> <p>Given the below binary tree and <code>sum = 22</code>,</p> <pre> <strong>5</strong> ...
true
bdcefe7de14ffa935d4bcfdbdab5c671fe213dbe
JavaScript
NeoClear/j2048
/j2048.js
UTF-8
7,447
2.859375
3
[]
no_license
function colorFactory(value) { switch (value) { case 0: return [205, 193, 180]; case 2: return [238, 228, 218]; case 4: return [237, 224, 200]; case 8: return [242, 177, 121]; case 16: return [245, 149, 99]; ...
true
fd6e250793738c0ae45f86ca0c75adde5fadd0ba
JavaScript
Few1213/Daily-Study
/Few-study/07-node/02/09-path模块优化文件路径.js
UTF-8
1,107
2.625
3
[]
no_license
// const fs = require('fs'); // const path = require('path'); // // console.log(__dirname + '/data/news.txt'); // console.log(path.join(__dirname, 'data', 'news.txt')); // // E:\前端视频\29期就业班\nodejs\02\04-代码/data/news.txt // fs.readFile(path.join(__dirname, 'data', 'news.txt'), 'utf-8', (err, data) => { // ...
true
30db5e2140530b66aaee52bcec3a61e6ba9df67f
JavaScript
seerdaryilmazz/OOF
/web-components/components/src/advanced/YesNoDropDown.jsx
UTF-8
1,417
2.640625
3
[]
no_license
import React from 'react'; import {DropDown} from '../basic'; export class YesNoDropDown extends React.Component { constructor(props) { super(props); let positiveLabel = "Yes"; let negativeLabel = "No"; this.options = [ { id: 1, name: pro...
true
f4ec462511ea61b5e8d1d0aec45f35fef237c377
JavaScript
jcapellanvasquez/diplomadoJavascript
/clase 2/ejercicios con formularios/main.js
UTF-8
384
3.25
3
[]
no_license
const tagFormulario = document.getElementById("mi-formulario"); //Creamos la accion para trabajar con el fomulario const accion = function(event) { event.preventDefault() //Obtener propiedades del evento console.log(event.target.nombre.value) console.log(event.target.apellido.value) } //Agregar acc...
true
2e5492a499bc2321971336a7f75379fcea9066d7
JavaScript
Vigyrious/js_basics
/Nested-Conditional-Statements/volleyball.js
UTF-8
570
2.890625
3
[]
no_license
function volleyball(arg1,arg2,arg3){ let yearType = String(arg1); let holidays = Number(arg2); let holidayHome = Number(arg3); let weekends = 48; let weekendsSofia = weekends - holidayHome; let playTimeHoliday = holidays * (2/3); let playTimeSofia = weekendsSofia * (3/4); let totalPlayTi...
true
b5e2c60ef054e5de8b76289777985e6c87ea313a
JavaScript
LauraCarmen/calculator
/index.js
UTF-8
1,094
3.453125
3
[]
no_license
const calc = require('./calculator'); let numbers = [24, 0, 12, 2, 112, 1, 48, 62, 4, 6]; for ( i = 0; i < numbers.length; i++ ) { for ( j = i + 1; j < numbers.length; j++ ) { console.log( " Suma dintre " + numbers[i] + " + " + numbers[j] + " este " + " = " + calc.suma( numbers[i], numbers[j] ) ); } ...
true
b772e76e01ec27b51850508af4c29e4a61648db4
JavaScript
muhammad-alamin1/javaScript-practices-30-days
/day-4/reverseAnArray.js
UTF-8
305
3.875
4
[]
no_license
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; let reverse = []; /** for (let i = 0; i < (arr.length / 2); i++) { let temp = arr[i]; arr[i] = arr[arr.length - 1 - i]; arr[arr.length - 1 - i] = temp; } console.log(arr); */ // Build in reverse function console.log(arr.reverse());
true
87a8e2d82831f390c5a55afeededb4bb28219f66
JavaScript
carly-west/carly-west.github.io
/lesson10/js/weatherapi.js
UTF-8
1,744
3.1875
3
[]
no_license
const apiURL = 'https://api.openweathermap.org/data/2.5/weather?id=5604473&appid=b8b0e14937e799b298d79cb51cfa495e&units=imperial'; fetch(apiURL) .then((response) => response.json()) .then((jsObject) => { console.log(jsObject); var currently = jsObject.weather[0].description; document.getElementById('cu...
true
abd172b6002c61d8488ce6974bd28575d742d2d9
JavaScript
LZH-C/commonframe
/src/main/resources/static/js/validate.js
UTF-8
1,322
2.875
3
[ "MIT" ]
permissive
function checkUserName(txtbox) { if (txtbox.validity.valueMissing){ txtbox.setCustomValidity("用户名不能为空!"); }else if(txtbox.validity.patternMismatch){ txtbox.setCustomValidity("6-15位字母或数字!"); } else { txtbox.setCustomValidity(""); } } function checkPassword(txtbox) { if (tx...
true
9c87e82cce3076f4aaa10da348c757692d402c10
JavaScript
WarriorsSami/CRUD-PHP
/js_util/dep_disp.js
UTF-8
524
2.765625
3
[]
no_license
let id = $('input[name*="id"]'); id.attr ('readonly', 'readonly'); $('.btnedit').click (e => { let textvalues = displayData (e); let nume = $('input[name*="dep_name"]'); id.val (textvalues[0]); nume.val (textvalues[1]); }); function displayData (e) { let id = 0; const td = $('#tbody tr td');...
true
6c99abc310a597c824aa957a243b06ac08e2d54b
JavaScript
JAForbes/combinations
/test.js
UTF-8
649
2.859375
3
[]
no_license
/* jshint asi:true, expr:true */ var expect = require('./expect') var combinations = require('./combinations') var list = ['A','B','C','D'] expect( 'Combination Size:2', combinations(2,list)[5],'C,D' ) expect( 'Combination Size:3', combinations(3,list)[3],'B,C,D' ) expect( 'Combination Size:4', combinatio...
true
b6951e3f8124d42873a0d68e4a073d1240386547
JavaScript
tontruongdao/m2-6-js--fundamentals-P2
/workshop/1-objects/exercise-4.js
UTF-8
739
4.28125
4
[]
no_license
// Exercise 4 // ------------------- let foodPairings = { burgers: 'beer', fish: 'white wine', beef: 'red wine', strawberries: 'cream', }; // We have an Object that contains food pairings so that our sommelier can make // educated recommendations. What we need is an Array that only holds all the foods. // 6....
true
2b596c1d2aebb101a252604233d3238d3966f21d
JavaScript
Avisrur/PetStoryServer
/services/files/files-service.js
UTF-8
782
2.59375
3
[]
no_license
const db = require('../../helpers/db'); const IncomingForm = require('formidable').IncomingForm; var fs = require('fs'); const Pet = db.Pet; const User = db.User; module.exports = { convertToBase64 }; function convertToBase64(req, res){ const form = new IncomingForm(); let base64Image = ""; let fileTy...
true
98118379cd2d93e49d6ebb286cf5dd631cc25cce
JavaScript
nolasco-ever/coffee-shop
/App.js
UTF-8
3,471
3.109375
3
[]
no_license
import React, { useState, useEffect } from 'react'; import './App.css'; import firebase from './base'; //import components import Menu from './components/menu'; function App() { // Get data from firestore database const ref = firebase.firestore().collection("products"); //global variable array that will hold a...
true
5b350e58e3b2291c55a9693891388ef91756ed5b
JavaScript
meneyer/AtlasMay2021-Client
/src/components/admin/CreatePoll.js
UTF-8
3,707
2.609375
3
[]
no_license
import {useState} from 'react'; import Switch from "react-switch"; import {ButtonToggle, Form, FormGroup, Label, Input, Col, Button} from 'reactstrap' import APIURL from "../../helpers/environment.js"; const CreatePoll=(props)=>{ const [question,setQuestion]=useState(''); const [optionsArray,setOptionsArray]=...
true
ce2853cb7a23ca89baecdcfef581b53fd01a32f5
JavaScript
sdlanda77/portfolio
/CodingChoreography/Angry_Eyes_2021_03_02_04_58_57/sketch.js
UTF-8
1,327
2.96875
3
[]
no_license
//PoseNet: // Copyright (c) 2018 ml5 // // This software is released under the MIT License. // https://opensource.org/licenses/MIT let video; let poseNet; function setup() { createCanvas(640, 480); video = createCapture(VIDEO); //video.size(width, height); video.hide(); poseNet = ml5.poseNet(video, mo...
true
7e632cef9557b6210b2dcaacc8462ed9850f6007
JavaScript
GracieIngermanson/Illegible2
/public/index.js
UTF-8
878
2.890625
3
[]
no_license
const clientSocket = io(window.location.origin); // Called when a user selects the interactive highlight view for a given story url const emitViewStoryHighlights = (url) => { clientSocket.emit('viewStoryHighlights', url); }; const loadHighlights = (highlights) => { console.log(highlights); highlights.forEach((e...
true
91dc6e8d099a8e20325bdace2756cfc94ef36d33
JavaScript
jarbaspsf/GameDev-TCC
/client/templates/world_boss/world_boss.js
UTF-8
2,412
2.65625
3
[]
no_license
WORLD_BOSS = null; Template.worldBoss.helpers({ worldBosses: function(){ return Challenges.find({boss: true}); }, loading: function(id){ return true; } }); Template.worldBoss.events({ 'click .btn-challenge': function(event){ event.preventDefault(); if(Meteor.user().profile.sta < 15 || Mete...
true
3edee704a69c2c19028454d37a992b66ecc36111
JavaScript
tastypotinc/CashCow
/WebSln/CashCow.Web/Scripts/Grid/CCGrid.js
UTF-8
14,141
2.671875
3
[]
no_license
/* Contains all scripts related to grid. Please use only this file for grid script. */ // Variable to keep track of alternate rows that is being rendered. var isPositionEven = false; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
true
1f96233bb6bf6aede3921455395c51c6c1b0b7e1
JavaScript
ikrammsk/javascript
/jour-4/exercice2.js
UTF-8
266
3.5
4
[]
no_license
var cat = { name: "Garfield", age: 3, isCute: true, } var cat2 = { name: "Paulo", age: 5, isCute: false, } // var cats = [Object.assign(cat,cat2 )] var cats = [cat, cat2] console.log(cats); console.log(cat.age); console.log(cat2["isCute"]);
true
dfb82b5e0452411879635bca61d77138887e59a2
JavaScript
jamesBrennan/normalize-data
/doc-examples/example_4.js
UTF-8
676
3.875
4
[ "MIT" ]
permissive
/* Goal: Rename an object property capitalizing the property value */ var n = require('normalize-data'); // Capitalizes the first letter of the name function capitalize(name) { return name.charAt(0).toUpperCase() + name.slice(1); } var objToNormalize = { name: 'mario', // First letter of the "Name" not capital...
true
c94a705f5b58a085164dd100d7f90dec06889edf
JavaScript
Krivega/JsSIP
/lib/WebSocketInterface.js
UTF-8
3,296
2.640625
3
[ "MIT" ]
permissive
const Logger = require('./Logger'); const Grammar = require('./Grammar'); const logger = new Logger('WebSocketInterface'); module.exports = class WebSocketInterface { constructor(url) { logger.debug('new() [url:"%s"]', url); this._url = url; this._sip_uri = null; this._via_transport = null; t...
true
ccbe63e8e969cf7c9c27f552f4bafb9f2d47b7d3
JavaScript
Def-Hacks-CS-Outreach/def-hacks-learn
/src/context/ContextWrapper.js
UTF-8
1,125
2.671875
3
[]
no_license
import React, { useState, useEffect } from 'react'; import AppContext from './AppContext'; import firebase from '../components/firebase/base'; const db = firebase.dbreturns(); export default function ContextWrapper(props) { const [user, setUser] = useState({}); const [courses, setCourses] = useState(null); use...
true
3859153d3d5f817ef4b151fd0da3697cf27060ba
JavaScript
ayushm/continue
/old_player/continue_options.js
UTF-8
2,091
2.984375
3
[]
no_license
/*chrome.storage.sync.set({'value': "12"}, function() { chrome.storage.sync.get("value", function(data) { console.log("data", data.value); }); }); */ var phone; var video = getParameterByName('video'); var time = getParameterByName('time'); chrome.storage.sync.get("phone", function(data) { phone = d...
true
ff722bab12a7f463e585f3fec55a88227a36a2df
JavaScript
JohnNmiMa/Udemy-MEAN-course
/backend/middleware/check-auth.js
UTF-8
700
2.671875
3
[]
no_license
const jwt = require('jsonwebtoken'); // Export a function for this module module.exports = (req, res, next) => { try { const token = req.headers.authorization.split(' ')[1]; // Verify the token - this will throw if the token doesn't decode properly. const decodedToken = jwt.verify(token, p...
true
66136f48be9d66381d16622a5c1173be5a98b0ff
JavaScript
supdann/hackeng2019
/frontend/src/helpers/redux.js
UTF-8
2,714
2.828125
3
[]
no_license
import API from './API' import engine1 from '../engine1.png' import engine2 from '../engine2.png' import engine3 from '../engine3.jpg' // Actions const LOAD_ENGINE_LIST = `LOAD_ENGINE_LIST` const LOAD_ENGINE_DATA = `LOAD_ENGINE_DATA` const SET_LOGGED_IN = `SET_LOGGED_IN` const SET_LOADING = `SET_LOADING` // Initial...
true
c7dd635d0fe6153581299c8115aa7e4185bbddea
JavaScript
bique14/vending-machine-web
/src/components/client/Locations.js
UTF-8
1,751
2.625
3
[]
no_license
import { useEffect, useState } from 'react' import config from '../../config.json' const Skeleton = () => { const skeltonNumber = [1, 2, 3, 4, 5, 6] return ( <div className="pb-20 grid grid-cols-2 gap-3 md:grid-cols-3 md:gap-5 lg:grid-cols-4"> {skeltonNumber.map((i) => SkeletonItem(i))} </div> ) ...
true
f5e6a8d28258b05e662468e77dfd4623f705934f
JavaScript
Mizan-Rifat/myblog
/src/reducers/PostsReducer.js
UTF-8
1,168
2.53125
3
[]
no_license
export default (state, action) => { switch (action.type) { case "FETCH_POSTS": return { ...state, posts:action.payload.posts, fetching:false, loading:false }; case "CREATE_POST": return { ...state, posts:[act...
true
4e4e0cd3e3017dfe0a28219a9c1e75b11eba0dfb
JavaScript
marcospoto/m2-4-js--thedom-P2
/__workshop/exercise-1/app.js
UTF-8
2,125
4
4
[]
no_license
// Preset values const FROGS = 3; // Exercise 1.1 - Set up the track for (let count = 1; count <= FROGS; count++) { // create a lane (<li>) let lane = document.createElement("li"); // give lane an id lane.id = count; // create a <span> let laneNum = document.createElement("span"); // add the lane number ...
true
89b00bcdc5c485e9e80becfc0cb4d85829fc0157
JavaScript
cd711/js-turtle
/examples/random_stars.js
UTF-8
471
3.5
4
[ "CC-BY-3.0" ]
permissive
// Random Stars -- draw stars randomly on the canvas function star (side, sColor) { penup() forward(.54*side) turn (180-18) pendown() var i=0 beginShape() while (i<5){ forward(side) right(180-36) i = i + 1 } fillShape(sColor) turn (180+18) } function demo () { reset() for (i=1; i<...
true
7cda1fded42f24cd3b0c2a6244bf64f708d61a60
JavaScript
pomeh/minenode-server
/proxy.js
UTF-8
3,445
2.546875
3
[]
no_license
// rewrite this function... very slow for now var writeLine = (function() { var fs = require('fs'); return function( fd, line ) { var data = ''; try { data = fs.readFileSync( fd ); if( data.length ) data += '\n'; } catch(e) {} fs.writeFileSync( fd, data + line ); }; })(); var log = function( d...
true
38edd80eb9d35bd1beb99001f8f8a0d6abd65c4f
JavaScript
YTakami/Digital_Output
/src/mainpanel.js
UTF-8
4,366
2.5625
3
[]
no_license
// KPR Script file var count = 0; var lineNo = 0; var stride = 16; var servostate = false; var rotate = false; var ledstate = []; var pulse1 = 1.1; var pulse2 = 1.7; var Startbehavior = function(){ } Startbehavior.prototype = Object.create(Object.prototype, { onTouchBegan: { value: function(start) { count = 0; ...
true
f17b36c633c38757e5a9476a4fa4db102a014b83
JavaScript
AvinashChowdary/Stock-Portfolio
/stock_portfolio/my_app/static/js/main.js
UTF-8
1,371
2.625
3
[]
no_license
jQuery(function(){ var temp, j , i, obj , flag = false; jQuery('.calculate-side-form').on('submit',function(e){ flag = false; if( jQuery.trim(jQuery('#amount').val()) === "") { flag = true; temp = 'Please enter amount to invest' ; }...
true
324670cce12ddd5c8d823538cb5ccbf83f14da4d
JavaScript
wendysung/emojiQuiz
/emojiQuiz.js
UTF-8
2,145
3.546875
4
[]
no_license
var score = 0; function check1(){ var answer1In = document.getElementById("sex-education"); var answer = answer1In.value.toLowerCase(); if (answer == "sex education"){ document.getElementById("answer1").innerHTML= "&#9989; correct!"; score++; } else{ document.getElementById(...
true
e89cce021b4f121586d1d286b66302bf148e2375
JavaScript
anthony-robinson/Etch-A-Sketch
/etch.js
UTF-8
1,683
3.71875
4
[]
no_license
//selects grid const grid = document.querySelector('#grid'); const btn = document.querySelector('#reset'); const boardbtn = document.querySelector('#newboard'); var node; //sets up grid board, creates n**2 div elements and assigns node var, id //and class for css manipulation. //set background color of node function ...
true
b651481f335ad248bf946c0502603a34363898de
JavaScript
tarcnux/chatbot-Telegram-NodeJs
/bot_10.js
UTF-8
1,386
2.59375
3
[]
no_license
const env = require('./.env') const Telegraf = require('telegraf') const Axios = require('axios') const Fs = require('fs') const Path = require('path') const donwloadImage = require('./donwloadImage') //Inicialização do Bot const bot = new Telegraf(env.token) bot.use(async (ctx, next) => { const start = new Date(...
true
4dcd1f155546314850d808b1f8c8cebb292d8060
JavaScript
JSebastianSalazar/Conasis-Java
/web/js/estrato.js
UTF-8
4,508
2.53125
3
[]
no_license
$(document).ready(function () { listarFichas(); $('select').material_select(); //llamando a google chart Solo se puede llamar una sola vez google.charts.load('current', {'packages': ['corechart']}); }); function stadistica2(id) { var valor = $(id).attr('id'); window.location.assign("Estadi...
true
839e0640804a2000a70af19461e70bab937da88b
JavaScript
MariaGabrielaReis/TPI-classes
/aula_05_25-08-2021/ex_modulo.js
UTF-8
4,890
3.765625
4
[]
no_license
/** * Imagine que você foi contratada para desenvolver um módulo que possa criar objetos dos tipos empresa, * cliente, telefone e endereço. * * Objetivos, parte 1: * No módulo desenvolvido deverão existir métodos construtores para cada tipo de objeto. * Este módulo deverá ser do tipo ES6. Para cada atributo priva...
true
ae79ac208db60df824bb6a246c09dc6414ac1062
JavaScript
AndrewDoan/chatroom
/server.js
UTF-8
1,716
2.78125
3
[]
no_license
// require express and path var express = require("express"); var path = require("path"); // create the express app var app = express(); app.set('port', (process.env.PORT || 5000)); var messages = []; var users = {}; // static content app.use(express.static(path.join(__dirname, "./static"))); // setting up ejs and our...
true
ebbf29592bc53a4aac882f4b84335d87725e230f
JavaScript
shanesyy/Online-Foosball
/foosball/static/foosball/js/game/count.js
UTF-8
993
3.28125
3
[]
no_license
var countObj = function() { this.x = canWidth * 0.5; this.y = canHeight * 0.5; this.value = 0; this.font = "60px Arial"; this.roundFlag = true; this.startImg = new Image(); // this.img = new Image(); // this.halfWidth = 20; }; countObj.prototype.init = function(counts) { this.value = counts + 1; this.roundFl...
true
341a16e7b9833dfd0d4db987f6d6d893be99813a
JavaScript
pepesan/ejemplos-nodejs
/02-lectura-ficheros/async-v2.js
UTF-8
558
2.8125
3
[]
no_license
/* Primer ejemplo de código Asíncrono NodeJS en el servidor */ const http = require('http'); const fs = require('fs'); const hostname = '127.0.0.1'; const port = 3000; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/html'); fs.rea...
true
d56d826f54dae68b5c53cc03a5ed17f85c39e145
JavaScript
dkburd/simple-get-request-1
/app.js
UTF-8
643
3.234375
3
[]
no_license
let numberDogs=$('#number') let number $('#number').bind('change', function() { number= numberDogs.val(); }); function getDogImages() { fetch(`https://dog.ceo/api/breeds/image/random/${number}`) .then(response => response.json()) .then(responseJson => displayResults(responseJson)) .catch(error...
true
214542b52b4ea6f493a791160b73a8ed7f33eef6
JavaScript
GabyRive/turn-app
/public/js/script.js
UTF-8
1,165
2.5625
3
[ "MIT" ]
permissive
$(document).ready(function() { $('#clickme').on('click', function() { $('html, body').animate({ scrollTop: ($('#about-us').offset().top - 100) }, 1000); $('.active').removeClass('active'); $(this).parent().addClass('active'); return false; }); $('#clickme2').on('click', fun...
true
b29ac6d13279f6677a244e066bb24e01f233f041
JavaScript
ICC3103-202110/proyecto-02-munoz-varela-2
/view.js
UTF-8
2,083
2.6875
3
[]
no_license
const figlet = require('figlet') const chalk = require('chalk') const inquirer = require('inquirer') function getTitle(){ return chalk.yellow( // color. figlet.textSync( 'Weather App', // mesage. { horizontalLayout: 'full', font: 'Nancyj-Underlined' ...
true
972d497886658883caa0c7c9a1540b07b22c73da
JavaScript
greenfox-zerda-lasers/bloodstone-bookmarks
/experiments/users.js
UTF-8
505
2.59375
3
[ "MIT" ]
permissive
'use strict' const usersMock = [ { email: "geritwo@gmail.com", password: "kutyadneve" }, { email: "jozsi@freemail.hu", password: "idemitirjak" }, ] const users = (function () { function lookUpUser(email, password) { var userID = usersMock.indexOf(email); if (userID != -1) { if (usersMoc...
true
5d4007acb3101a0ccc5bfa1025dcc4c4f8e13898
JavaScript
MJerezFlores/ToDoList
/public/src/Task.js
UTF-8
1,001
2.765625
3
[]
no_license
import React, {Component} from 'react' class Task extends Component { constructor(props) { super(props); this.state = { taskDone: this.props.task.done }; this.handleDataChangeInput = this.handleDataChangeInput.bind(this); } handleDataChangeInput(data) { ...
true
fafa8e2054026a64766214cfe98a9c8701a404f6
JavaScript
nasjones/DSA-Recursion
/sheep.js
UTF-8
234
3.359375
3
[]
no_license
function sheep(n) { if (n == 0) console.log("all sheep jumped over the fence") else { console.log(n + ": Another sheep jumps over the fence") sheep(n - 1) } } sheep(7) sheep(20) sheep(3) sheep(12)
true
8a2714a796630a659b8ed0bb0e2ed48783996c79
JavaScript
agathaco/space-rockets-challenge
/src/context/fav-reducer.js
UTF-8
1,554
2.515625
3
[ "MIT" ]
permissive
import { GET_LAUNCH_FAVS, GET_LAUNCHPAD_FAVS, FAV_LAUNCH, FAV_LAUNCHPAD, UNFAV_LAUNCH, UNFAV_LAUNCHPAD, } from "./types"; export function favReducer(state, action) { const { type, launch, launches, launchPad, launchPads } = action; let savedFavs = []; switch (type) { case GET_LAUNCH_FAVS: ...
true
8fd5b8feea882e859ddc399126774a60d84c8883
JavaScript
Curtislike/online-zoo
/pages/landing/src.js
UTF-8
3,386
2.515625
3
[]
no_license
/*--------------------DARK THEME---------------*/ const checkbox = document.getElementById("switcher"); let logo = document.querySelector(".headerlogo"); let map = document.querySelector(".map-image"); let payelem1 = document.querySelector(".pay-element1"); let payelem2 = document.querySelector(".pay-element2"); ...
true
d13d4b5e7de6b11539030180fc6860d00f694760
JavaScript
slnader/achievement_gaps
/js/viz/global_functions.js
UTF-8
1,765
3.015625
3
[]
no_license
/*Trigger responsive sizing function d3.select(window) .on("resize", sizeChange); //Define responsive sizing function (requires ajax jquery) function sizeChange() { //Resize all svgs d3.selectAll("#state_levels_container").attr("width", $(window).width() + "px").attr("height", $(window).height() +...
true
8e3991210f80800ef67bfda4fa3fdfe8b0b537bb
JavaScript
aromero18020/Dad-Joke-Generator
/Resources/Javascrpt/script.js
UTF-8
3,444
3.078125
3
[]
no_license
//comment out the alert once maintenance is complete // alert('Page Under Maintenance'); const getJoke = document.querySelector(".get-joke"); const tellAnother = document.querySelector(".another-joke"); const lightBtn = document.querySelector(".light"); const darkBtn = document.querySelector(".dark"); const setTheme ...
true
33377478c459a83634ff731040466a698625a732
JavaScript
hAlexandre/click_evolve
/_js/click_me.js
UTF-8
470
3.484375
3
[]
no_license
// JavaScript Document function updateIncome() { var income = parseInt(document.getElementById('income').innerHTML); console.log(income); document.getElementById('income').innerHTML = income + 1; } function updateQt() { // var income = document.getElementById var valor = document.getElementById('coin-qt').innerH...
true
6f5137ae2b7937543896f7f02bbbaa0ef0be15bd
JavaScript
ICT37008G1-LBK-fall-2018/intermediate-t3-mi5hiko
/A01/script.js
UTF-8
276
2.71875
3
[]
no_license
let ritskhvi = prompt('Chatsere ori ritskhvi').split(' '), a = +ritskhvi[0], b = +ritskhvi[1], sum = 0; if((a <= 0 || b <= 0 ) || (a >= 1000 || b >= 1000) || a >= b ){ alert('Arastsori Shualedi'); } else{ for(a; a<=b; a++){ sum += a; } alert(sum); }
true
114ddd66bec8644c51921b7fa97eb1727d3c66a8
JavaScript
yutro/study
/js/cacheBoxJs/dev/storage.js
UTF-8
1,234
2.6875
3
[ "MIT" ]
permissive
export default class Storage { constructor(options) { if ('session' == options['type']) { this.storage = window.sessionStorage || 0; } else if ('local' == options['type']) { this.storage = window.localStorage || 0; } if (this.storage) { thi...
true
b073f3d6dfb0fcbd68e0f323f624588a92f882f0
JavaScript
cxbing1/task4
/main/student.js
UTF-8
275
2.96875
3
[]
no_license
let Person = require('./person') // Write your code here module.exports = function Student(name,age,xlass) { Person.call(this,name,age); this.introduce=function() { return "My name is "+name+". I am "+age+" years old. I am a Student. I am at Class "+xlass+"."; }; }
true
18d078c78b0d61f764d08ecfb1ab5657da1cc5cd
JavaScript
kimjy0301/WebPortfolio
/bin/main/static/js/stompChat.js
UTF-8
3,989
2.5625
3
[]
no_license
$(function () { var sendBtn = $('.msg_send_btn'); var createBtn = $('.create'); var endBtn = $('.exit'); var result = Math.floor(Math.random() * 10000) + 1; var roomId = result; var messageInput = $('.write_msg'); var chatBox = $('.msg_history'); ...
true
fa8cd6d6c0947070c8b41351eecdc73744d59fb5
JavaScript
ntrivix/anketa
/public/js/anketa.js
UTF-8
3,819
2.578125
3
[]
no_license
/** * Created by Nikol on 14.7.2017.. */ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var anketaData = {}; function populateCas(cas) { casId = $(cas).find(".id_cas").val(); $(cas).find("form").each(function (key, val) { if (anketaData[c...
true
7fab1f0af4cbcbf1a989bc2a606a9cd2b2d972d9
JavaScript
MakanMachine/MakanMachine
/handlers/replyHandler.js
UTF-8
5,949
2.546875
3
[]
no_license
/* Modules to handle message replies from Users * Module Exported: * 1. handleReply(chatID, msgObj): Handles Message Replies from Users */ const tgCaller = require('../api_caller/telegram_caller'); const userPref = require('../userpref'); const cService = require('../cache/cacheService'); const lService = require('.....
true
87ea1b1e4fa8ab1da54f44583113344de1d20bad
JavaScript
clmsnskr/poker-hand
/test/complete.js
UTF-8
2,189
3.390625
3
[]
no_license
console.log('Evaluating all the possible combinations...'); const { performance } = require('perf_hooks'); const evalHand = require('../src/utils/eval-hand'); const cards = { cardOrder: ['A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3', '2'], suits: ['S', 'H', 'D', 'C'], }; const totalCards = cards.car...
true
29a63e694e92dea9f14530226f7cced490793aca
JavaScript
dongzhe3917875/study
/Dep injection/injector_improve.js
UTF-8
974
3.21875
3
[]
no_license
var injector = { dependencies: {}, register: function(key, value) { this.dependencies[key] = value; }, resolve: function() { var func = arguments[0]; var scope = arguments[1]; var deps = func.toString().match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[ 1].replace(/ /g, "").split(","); var a...
true
6d5ab1cfe72b8a784fb5e24e30768f3f6dd177b8
JavaScript
0ness/generative-design
/common/js/library.js
UTF-8
7,281
2.515625
3
[]
no_license
/*============================================================================== 汎用処理ライブラリ ・基本DOM操作の自動化 ・HTML5対応 ・IE対応 ==============================================================================*/ //SCRIPT START var Library = function(){ /*const 定数 このJS内部でグローバルに使う定数 ---------------------...
true
a9d5c6cdd491b022b90fb2daaa17f7aa00fba57c
JavaScript
xiaoyu1035355110/ReactExercise
/my-app/src/Greeting.js
UTF-8
1,429
2.609375
3
[]
no_license
import React, { Component } from 'react'; class Greeting extends Component { constructor (props) { super(props); this.state = { }; } render() { const message = ['React', 'Re: React', 'Re:Re: React']; let isLoggedIn = this.props.isLoggedIn; let ...
true
ce42a64a4bc30a38fbc0f87530bbb82101e4de70
JavaScript
hieutdo/data-structures-and-algorithms
/leetcode/179-largest-number.js
UTF-8
574
4.21875
4
[]
no_license
/* https://leetcode.com/problems/largest-number/ Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result may be very large, so you need to return a string instead of an integer. */ /** ...
true
4170fae574f4d3340189e8493568f2824563bfbf
JavaScript
jtassie/scheme-jtassie
/lib/scheme-manager.js
UTF-8
2,738
3.203125
3
[ "MIT" ]
permissive
'use strict'; /** * This module is the entry point into the library. Point it at a directory holding scheme files and it will index * the directories contents by building instances of SchemeModel (parsed representations of the scheme files). * * After the directory is indexed, you can retrieve each model by the 't...
true
da1fa8d1bd8e88b5c6fcaf32f0ab5bbeb92a8bfd
JavaScript
lagunova-anna/100coinsGame
/js/state.js
UTF-8
5,151
2.953125
3
[]
no_license
// модуль управляет состояниями игры - создаем SPA GameApp.State = (function() { // отслеживаем изменение закладки в УРЛе (оно происходит при любом виде навигации в т.ч. при нажатии кнопок браузера ВПЕРЁД/НАЗАД) window.onhashchange = switchToStateFromURLHash; // текущее состояние приложения var SPAS...
true
5e76c206931aa4ea2eea32bdefb1ece11fa06cb2
JavaScript
RuslanMustafin87/portfolio-server
/views/components/blocks/slider/js/slider_title.js
UTF-8
2,068
2.734375
3
[]
no_license
const sliderContainer = document.querySelector('.slider-title-list'); const slideFirst = sliderContainer.firstElementChild; const slideLast = sliderContainer.lastElementChild; const popUpTextShow = function(slideActive, slidePrevActive){ const itemPrevActive = slidePrevActive.querySelector('.title').querySelecto...
true
a421ddf8c6fbd64aefd7ba1da00363db48739918
JavaScript
kellynb/TowersOfHanoi
/Server/Component/user.js
UTF-8
927
2.578125
3
[]
no_license
const User = require('../Model/userModel'); exports.list= function list(request, response) { const name = request.params User.find(name, (err,users) => { if (err) return console.error(err); return response.json(users); }) } exports.create = function create(request, response) { User....
true
04725312322ba2160934e3d1e6e80847d8abc906
JavaScript
urmastalimaa/interactive-frontend-development
/lecture_3/test/CommentFormTest.js
UTF-8
2,508
2.8125
3
[ "MIT" ]
permissive
import { render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import CommentForm from "../src/path_to_hooks/HooksCommentForm"; describe("CommentForm", () => { // This test has both good and bad examples. // // Bad practice is to assert presence of exact markup. ...
true
2d71e2a1fb623679c4cbed58b5e24bdf79402e49
JavaScript
itamarco/TechnionMap
/www/js/facebook.js
UTF-8
2,247
2.671875
3
[]
no_license
//These are the notifications that are displayed to the user through pop-ups if the above JS files does not exist in the same directory--> if ((typeof cordova == 'undefined') && (typeof Cordova == 'undefined')) log.error('Cordova variable does not exist. Check that you have included cordova.js correctly'); if (typeof C...
true
5f8fa90a86d42fcecec8c7adff5f877fc0d388e1
JavaScript
ima-nyush/Nature-of-Code-Sp18
/week12-fractal/w12_03_fractal_recursion_fourCircles/sketch.js
UTF-8
453
3.6875
4
[]
no_license
function setup() { createCanvas(800, 600); noFill(); background(255); drawCircle(width / 2, height / 2, 300); } function draw() { noLoop(); } function drawCircle(x, y, r) { ellipse(x, y, r, r); if (r > 10) { // recursion: call the function inside the function! // x drawCircle(x - r / 2, y, ...
true
772aa324a6b7381725c0f525fe754445d0eb4b5d
JavaScript
MunozAle12/CursoIngresoJS
/6-InstruccionFor/jsIteracionesFor (1).js
UTF-8
358
3.421875
3
[]
no_license
function Mostrar() { var contador; var respuesta; contador=0; respuesta = "si"; for( ;respuesta=="si"; )//(se ejecuta una sola vez ; se ejecuta siempre ; se ejecuta de la segunda vez en adelante) { if(contador==10) { break; } contador++;//contador-- console.log("Hola"+contador); respuesta...
true